Documentation ¶
Index ¶
- type Option
- func WithAddress(address string) Option
- func WithRegisterFunc(opts ...RegisterFunc) Option
- func WithServerOption(opts ...grpc.ServerOption) Option
- func WithStreamInterceptor(interceptors ...grpc.StreamServerInterceptor) Option
- func WithUnaryInterceptor(interceptors ...grpc.UnaryServerInterceptor) Option
- type RegisterFunc
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(s *Server)
func WithAddress ¶
func WithRegisterFunc ¶
func WithRegisterFunc(opts ...RegisterFunc) Option
func WithServerOption ¶
func WithServerOption(opts ...grpc.ServerOption) Option
func WithStreamInterceptor ¶
func WithStreamInterceptor(interceptors ...grpc.StreamServerInterceptor) Option
func WithUnaryInterceptor ¶
func WithUnaryInterceptor(interceptors ...grpc.UnaryServerInterceptor) Option
type RegisterFunc ¶
type Server ¶
type Server struct { ServerOptions []grpc.ServerOption StreamServerInterceptors []grpc.StreamServerInterceptor UnaryServerInterceptors []grpc.UnaryServerInterceptor RegisterFuncs []RegisterFunc Server *grpc.Server Address string }
Click to show internal directories.
Click to hide internal directories.