client

package
v1.9.9 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnInterface added in v1.3.1

type ConnInterface interface {
	grpc.ClientConnInterface
	Close() error
	// contains filtered or unexported methods
}

ConnInterface a wrapper for grpc.ClientConnInterface

func NewConn added in v1.3.1

func NewConn(endpoint string, logger *zap.Logger, notify proposal.NotifyHandler, options ...Option) (ConnInterface, error)

NewConn create a grpc client conn

type Option

type Option func(*option)

Option some options for build a conn

func WithCredential

func WithCredential(credential credentials.TransportCredentials) Option

WithCredential setup credential for tls

func WithDialTimeout

func WithDialTimeout(timeout time.Duration) Option

WithDialTimeout setup the dial timeout

func WithKeepAlive

func WithKeepAlive(keepalive *keepalive.ClientParameters) Option

WithKeepAlive setup keepalive parameters

func WithProjectName added in v1.3.1

func WithProjectName(name string) Option

WithProjectName add project name into alert message

func WithResolverBuilder

func WithResolverBuilder(builder resolver.Builder) Option

WithResolverBuilder setup resolver builder

func WithSigner added in v1.3.1

func WithSigner(signer proposal.Signer) Option

WithSigner a handler for do signature

Jump to

Keyboard shortcuts

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