[#259] netmap/grpc: Add NetworkInfo call to Client

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-02-17 20:34:44 +03:00 committed by Alex Vanin
parent 9eda317efe
commit 8cb1f960f4

View file

@ -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 {