Documentation ¶
Index ¶
- func ChainStreamServer() grpc.StreamServerInterceptor
- func ChainUnaryServer() grpc.UnaryServerInterceptor
- func New(opts *ServerOptions) *grpc.Server
- type ServerOption
- func WithDefaultKeepaliveOption() ServerOption
- func WithDefaultStreamInterceptors(fns ...grpc.StreamServerInterceptor) ServerOption
- func WithDefaultUnaryInterceptors(fns ...grpc.UnaryServerInterceptor) ServerOption
- func WithRateLimitingOption(fn tap.ServerInHandle) ServerOption
- func WithServerOption(opts ...grpc.ServerOption) ServerOption
- func WithStreamInterceptors(fns ...grpc.StreamServerInterceptor) ServerOption
- func WithUnaryInterceptors(fns ...grpc.UnaryServerInterceptor) ServerOption
- type ServerOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChainStreamServer ¶
func ChainStreamServer() grpc.StreamServerInterceptor
func ChainUnaryServer ¶
func ChainUnaryServer() grpc.UnaryServerInterceptor
func New ¶
func New(opts *ServerOptions) *grpc.Server
Types ¶
type ServerOption ¶
type ServerOption func(*ServerOptions)
func WithDefaultKeepaliveOption ¶
func WithDefaultKeepaliveOption() ServerOption
func WithDefaultStreamInterceptors ¶
func WithDefaultStreamInterceptors(fns ...grpc.StreamServerInterceptor) ServerOption
func WithDefaultUnaryInterceptors ¶
func WithDefaultUnaryInterceptors(fns ...grpc.UnaryServerInterceptor) ServerOption
func WithRateLimitingOption ¶
func WithRateLimitingOption(fn tap.ServerInHandle) ServerOption
func WithServerOption ¶
func WithServerOption(opts ...grpc.ServerOption) ServerOption
func WithStreamInterceptors ¶
func WithStreamInterceptors(fns ...grpc.StreamServerInterceptor) ServerOption
func WithUnaryInterceptors ¶
func WithUnaryInterceptors(fns ...grpc.UnaryServerInterceptor) ServerOption
type ServerOptions ¶
type ServerOptions struct {
// contains filtered or unexported fields
}
func NewOptions ¶
func NewOptions(opts ...ServerOption) *ServerOptions
Click to show internal directories.
Click to hide internal directories.