grpc

package
v0.0.26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package grpc provides agent ngt gRPC client functions

Package grpc provides agent ngt gRPC client functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	client.Client
	client.ObjectReader
	client.Indexer
}

Client represents agent NGT client interface.

func New

func New(ctx context.Context, opts ...Option) (Client, error)

New returns Client implementation if no error occurs.

type Option

type Option func(*agentClient)

Option is agentClient configure.

func WithAddr

func WithAddr(addr string) Option

WithAddr returns Option that sets addr.

func WithGRPCClientOption

func WithGRPCClientOption(opts ...grpc.Option) Option

WithGRPCClientOption returns Option that sets options for gRPC.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL