Documentation
¶
Index ¶
- func New(logger *zap.Logger, options ...Option) *grpc.Server
- func ParseFileDescriptor(descriptor protoreflect.FileDescriptor)
- func RegisteAuthorizationValidator(name string, handler interceptor.UserinfoHandler)
- func RegisteProxyAuthorizationValidator(name string, handler interceptor.SignatureHandler)
- type Option
- func WithCredential(credential credentials.TransportCredentials) Option
- func WithEnforcementPolicy(enforcementPolicy *keepalive.EnforcementPolicy) Option
- func WithKeepAlive(keepalive *keepalive.ServerParameters) Option
- func WithNotifyHandler(handler interceptor.NotifyHandler) Option
- func WithPrometheus(addr string) Option
- func WithPrometheusPush(gateway string) Option
- type Payload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseFileDescriptor ¶
func ParseFileDescriptor(descriptor protoreflect.FileDescriptor)
ParseFileDescriptor parse file descriptor
func RegisteAuthorizationValidator ¶
func RegisteAuthorizationValidator(name string, handler interceptor.UserinfoHandler)
RegisteAuthorizationValidator some handler(s) for validate authorization and return userinfo
func RegisteProxyAuthorizationValidator ¶
func RegisteProxyAuthorizationValidator(name string, handler interceptor.SignatureHandler)
RegisteProxyAuthorizationValidator some handler(s) for validate 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 WithEnforcementPolicy ¶
func WithEnforcementPolicy(enforcementPolicy *keepalive.EnforcementPolicy) Option
WithEnforcementPolicy setup enforcement policy
func WithKeepAlive ¶
func WithKeepAlive(keepalive *keepalive.ServerParameters) Option
WithKeepAlive setup keepalive parameters
func WithNotifyHandler ¶
func WithNotifyHandler(handler interceptor.NotifyHandler) Option
WithNotifyHandler notify when got panic
func WithPrometheus ¶
WithPrometheus prometheus metrics exposes on http://addr/metrics
func WithPrometheusPush ¶
WithPrometheusPush push prometheus metrics to the Pushgateway
Click to show internal directories.
Click to hide internal directories.