Documentation ¶
Index ¶
- type Option
- func WithAuthFunc(f auth.AuthFunc) Option
- func WithDefaultAuthFunc() Option
- func WithDefaultInterceptorLogger() Option
- func WithDefaultRecoveryHandlerFunc() Option
- func WithEnableHealth() Option
- func WithIgnoreProtoValidateMessages(msgs ...protoreflect.MessageType) Option
- func WithInterceptorLogger(f logging.LoggerFunc) Option
- func WithPort(port int) Option
- func WithRecoveryHandlerFunc(f recovery.RecoveryHandlerFunc) Option
- func WithStreamInterceptors(interceptors ...grpc.StreamServerInterceptor) Option
- func WithUnaryInterceptors(interceptors ...grpc.UnaryServerInterceptor) Option
- type Options
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Options)
func WithAuthFunc ¶
func WithDefaultAuthFunc ¶
func WithDefaultAuthFunc() Option
func WithDefaultInterceptorLogger ¶
func WithDefaultInterceptorLogger() Option
func WithDefaultRecoveryHandlerFunc ¶
func WithDefaultRecoveryHandlerFunc() Option
func WithEnableHealth ¶
func WithEnableHealth() Option
func WithIgnoreProtoValidateMessages ¶
func WithIgnoreProtoValidateMessages(msgs ...protoreflect.MessageType) Option
func WithInterceptorLogger ¶
func WithInterceptorLogger(f logging.LoggerFunc) Option
func WithRecoveryHandlerFunc ¶
func WithRecoveryHandlerFunc(f recovery.RecoveryHandlerFunc) Option
func WithStreamInterceptors ¶
func WithStreamInterceptors(interceptors ...grpc.StreamServerInterceptor) Option
func WithUnaryInterceptors ¶
func WithUnaryInterceptors(interceptors ...grpc.UnaryServerInterceptor) Option
type Options ¶
type Options struct { Port int EnableHealth bool RecoveryHandlerFunc recovery.RecoveryHandlerFunc InterceptorLogger logging.LoggerFunc AuthFunc auth.AuthFunc IgnoreProtoValidateMessages []protoreflect.MessageType UnaryInterceptors []grpc.UnaryServerInterceptor StreamInterceptors []grpc.StreamServerInterceptor }
Click to show internal directories.
Click to hide internal directories.