Documentation ¶
Index ¶
- func New(logger *zap.Logger, options ...Option) (*runtime.ServeMux, []grpc.DialOption)
- func ParseFileDescriptor(descriptor protoreflect.FileDescriptor)
- func RegisteWhitelistingValidator(name string, handler interceptor.WhitelistingHandler)
- type Option
- func WithCredential(credential credentials.TransportCredentials) Option
- func WithDialTimeout(timeout time.Duration) Option
- func WithKeepAlive(keepalive *keepalive.ClientParameters) Option
- func WithNotifyHandler(handler interceptor.NotifyHandler) Option
- func WithPrometheus(metrics func(http.Handler)) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseFileDescriptor ¶
func ParseFileDescriptor(descriptor protoreflect.FileDescriptor)
ParseFileDescriptor parse file descriptor
func RegisteWhitelistingValidator ¶
func RegisteWhitelistingValidator(name string, handler interceptor.WhitelistingHandler)
RegisteWhitelistingValidator some handler(s) for whitelisting signature
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 WithNotifyHandler ¶
func WithNotifyHandler(handler interceptor.NotifyHandler) Option
WithNotifyHandler notify when got panic
func WithPrometheus ¶ added in v1.2.0
WithPrometheus enable prometheus metrics
Click to show internal directories.
Click to hide internal directories.