client

package
v0.0.0-...-f53b987 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	List(ctx context.Context, request *oproto.ListRequest) (<-chan *oproto.ListResponse, error)
	Get(ctx context.Context, request *oproto.GetRequest) (<-chan *oproto.GetResponse, error)
	Add(ctx context.Context) (chan<- *oproto.AddRequest, <-chan *oproto.AddResponse, error)
	GetConfig(ctx context.Context) (*oproto.ClusterConfig, error)
}

type RpcClient

type RpcClient struct {
	// contains filtered or unexported fields
}

func NewRpcClient

func NewRpcClient(ctx context.Context, addr string) (*RpcClient, error)

func (*RpcClient) Add

func (c *RpcClient) Add(ctx context.Context) (chan<- *oproto.AddRequest, <-chan *oproto.AddResponse, error)

func (*RpcClient) Close

func (c *RpcClient) Close()

func (*RpcClient) Get

func (c *RpcClient) Get(ctx context.Context, request *oproto.GetRequest) (<-chan *oproto.GetResponse, error)

func (*RpcClient) GetConfig

func (c *RpcClient) GetConfig(ctx context.Context) (*oproto.ClusterConfig, error)

func (*RpcClient) List

func (c *RpcClient) List(ctx context.Context, request *oproto.ListRequest) (<-chan *oproto.ListResponse, error)

Jump to

Keyboard shortcuts

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