Documentation ¶
Overview ¶
Package server is generic grpc server-side.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*options)
Option set server option
func WithSecure ¶
func WithSecure(credential credentials.TransportCredentials) Option
WithSecure set secure
func WithServiceRegister ¶
func WithServiceRegister(fn ServiceRegisterFn) Option
WithServiceRegister set service register
func WithStreamInterceptor ¶
func WithStreamInterceptor(interceptors ...grpc.StreamServerInterceptor) Option
WithStreamInterceptor set stream interceptor
func WithUnaryInterceptor ¶
func WithUnaryInterceptor(interceptors ...grpc.UnaryServerInterceptor) Option
WithUnaryInterceptor set unary interceptor
Click to show internal directories.
Click to hide internal directories.