Documentation ¶
Index ¶
- func New(logger *zap.Logger, endpoint string, options ...Option) (*grpc.ClientConn, error)
- type Option
- func WithCredential(credential credentials.TransportCredentials) Option
- func WithDialTimeout(timeout time.Duration) Option
- func WithKeepAlive(keepalive *keepalive.ClientParameters) Option
- func WithMarshalJournal() Option
- func WithNotifyHandler(handler func(desc, err, stack, journalID string)) Option
- func WithResolverBuilder(builder resolver.Builder) Option
- func WithSign(sign Sign) Option
- type Sign
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*option)
Option how setup client
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 WithMarshalJournal ¶ added in v1.0.12
func WithMarshalJournal() Option
WithMarshalJournal marshal journal to json string
func WithNotifyHandler ¶ added in v1.0.12
WithNotifyHandler notify when got panic
func WithResolverBuilder ¶
WithResolverBuilder setup resolver builder
Click to show internal directories.
Click to hide internal directories.