[#121] client: Make PrmAnnounceSpace, PrmEndpointInfo, PrmNetworkInfo fields public #158
1 changed files with 4 additions and 4 deletions
|
@ -16,12 +16,12 @@ import (
|
||||||
|
|
||||||
// PrmEndpointInfo groups parameters of EndpointInfo operation.
|
// PrmEndpointInfo groups parameters of EndpointInfo operation.
|
||||||
type PrmEndpointInfo struct {
|
type PrmEndpointInfo struct {
|
||||||
prmCommonMeta
|
XHeaders []string
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *PrmEndpointInfo) buildRequest(c *Client) (*v2netmap.LocalNodeInfoRequest, error) {
|
func (x *PrmEndpointInfo) buildRequest(c *Client) (*v2netmap.LocalNodeInfoRequest, error) {
|
||||||
meta := new(v2session.RequestMetaHeader)
|
meta := new(v2session.RequestMetaHeader)
|
||||||
writeXHeadersToMeta(x.xHeaders, meta)
|
writeXHeadersToMeta(x.XHeaders, meta)
|
||||||
|
|
||||||
req := new(v2netmap.LocalNodeInfoRequest)
|
req := new(v2netmap.LocalNodeInfoRequest)
|
||||||
req.SetBody(new(v2netmap.LocalNodeInfoRequestBody))
|
req.SetBody(new(v2netmap.LocalNodeInfoRequestBody))
|
||||||
|
@ -112,12 +112,12 @@ func (c *Client) EndpointInfo(ctx context.Context, prm PrmEndpointInfo) (*ResEnd
|
||||||
|
|
||||||
// PrmNetworkInfo groups parameters of NetworkInfo operation.
|
// PrmNetworkInfo groups parameters of NetworkInfo operation.
|
||||||
type PrmNetworkInfo struct {
|
type PrmNetworkInfo struct {
|
||||||
prmCommonMeta
|
XHeaders []string
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x PrmNetworkInfo) buildRequest(c *Client) (*v2netmap.NetworkInfoRequest, error) {
|
func (x PrmNetworkInfo) buildRequest(c *Client) (*v2netmap.NetworkInfoRequest, error) {
|
||||||
meta := new(v2session.RequestMetaHeader)
|
meta := new(v2session.RequestMetaHeader)
|
||||||
writeXHeadersToMeta(x.xHeaders, meta)
|
writeXHeadersToMeta(x.XHeaders, meta)
|
||||||
|
|
||||||
var req v2netmap.NetworkInfoRequest
|
var req v2netmap.NetworkInfoRequest
|
||||||
req.SetBody(new(v2netmap.NetworkInfoRequestBody))
|
req.SetBody(new(v2netmap.NetworkInfoRequestBody))
|
||||||
|
|
Loading…
Reference in a new issue