Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServer ¶
func NewServer(opt ...ServerOption) *grpc.Server
NewServer creates a new instance of gRPC server.
Types ¶
type ServerOption ¶
type ServerOption func(options *options)
ServerOption sets server options.
func WithGRPCOptions ¶
func WithGRPCOptions(opt ...grpc.ServerOption) ServerOption
WithGRPCOptions sets gRPC server options.
func WithStreamInterceptor ¶
func WithStreamInterceptor(s grpc.StreamServerInterceptor) ServerOption
WithStreamInterceptor adds a stream interceptor to the chain.
func WithUnaryInterceptor ¶
func WithUnaryInterceptor(u grpc.UnaryServerInterceptor) ServerOption
WithUnaryInterceptor adds an unary interceptor to the chain.
Click to show internal directories.
Click to hide internal directories.