Documentation ¶
Index ¶
- func New(logger *zap.Logger, options ...Option) *grpc.Server
- func ParseFileDescriptor(descriptor protoreflect.FileDescriptor)
- func RegisteAuthorizationValidator(name string, ...)
- func RegisteProxyAuthorizationValidator(name string, ...)
- type Option
- func WithCredential(credential credentials.TransportCredentials) Option
- func WithEnforcementPolicy(enforcementPolicy *keepalive.EnforcementPolicy) Option
- func WithKeepAlive(keepalive *keepalive.ServerParameters) Option
- func WithMarshalJournal() Option
- func WithNotifyHandler(handler func(desc, err, stack, journalID string)) 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 ¶ added in v0.3.19
func ParseFileDescriptor(descriptor protoreflect.FileDescriptor)
ParseFileDescriptor parse file descriptor
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 WithMarshalJournal ¶ added in v0.3.1
func WithMarshalJournal() Option
WithMarshalJournal marshal journal to json string
func WithNotifyHandler ¶ added in v0.3.19
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.