Documentation ¶
Index ¶
- type ConnInterface
- type Option
- func WithCredential(credential credentials.TransportCredentials) Option
- func WithDialTimeout(timeout time.Duration) Option
- func WithKeepAlive(keepalive *keepalive.ClientParameters) Option
- func WithProjectName(name string) Option
- func WithResolverBuilder(builder resolver.Builder) Option
- func WithSigner(signer proposal.Signer) Option
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 ¶
WithDialTimeout setup the dial timeout
func WithKeepAlive ¶
func WithKeepAlive(keepalive *keepalive.ClientParameters) Option
WithKeepAlive setup keepalive parameters
func WithProjectName ¶ added in v1.3.1
WithProjectName add project name into alert message
func WithResolverBuilder ¶
WithResolverBuilder setup resolver builder
func WithSigner ¶ added in v1.3.1
WithSigner a handler for do signature
Click to show internal directories.
Click to hide internal directories.