[#259] netmap/grpc: Add NetworkInfo call to Client
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
9eda317efe
commit
8cb1f960f4
1 changed files with 4 additions and 0 deletions
|
@ -53,6 +53,10 @@ func (c *Client) LocalNodeInfo(ctx context.Context, req *LocalNodeInfoRequest) (
|
||||||
return c.client.LocalNodeInfo(ctx, req, c.callOpts...)
|
return c.client.LocalNodeInfo(ctx, req, c.callOpts...)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *Client) NetworkInfo(ctx context.Context, req *NetworkInfoRequest) (*NetworkInfoResponse, error) {
|
||||||
|
return c.client.NetworkInfo(ctx, req, c.callOpts...)
|
||||||
|
}
|
||||||
|
|
||||||
// WithCallOptions returns Option that configures
|
// WithCallOptions returns Option that configures
|
||||||
// Client to attach call options to each rpc call.
|
// Client to attach call options to each rpc call.
|
||||||
func WithCallOptions(opts []grpc.CallOption) Option {
|
func WithCallOptions(opts []grpc.CallOption) Option {
|
||||||
|
|
Loading…
Reference in a new issue