client_conn

package
v1.5.1002 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: BSD-3-Clause Imports: 19 Imported by: 21

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RPCClientDialOptionAppend added in v1.5.1

func RPCClientDialOptionAppend(opts []grpc.DialOption)

only executed at boot load, so no locks are used

Types

type ConnClient added in v1.4.2

type ConnClient struct {
	ServerName string
}

func NewConnClient added in v1.4.2

func NewConnClient(serviceName string) (*ConnClient, error)

func (*ConnClient) GetConn added in v1.4.2

func (c *ConnClient) GetConn(ctx context.Context, opts ...grpc.DialOption) (*grpc.ClientConn, error)

return a valid connection as much as possible

func (*ConnClient) GetEndpoints added in v1.4.2

func (c *ConnClient) GetEndpoints(ctx context.Context) (endpoints []string, err error)

the returned endpoint list may have invalid nodes

Jump to

Keyboard shortcuts

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