Documentation ¶
Index ¶
- func NewServer(service factory.ServiceFactory, opts ...OptionFunc) factory.AppServerFactory
- type OptionFunc
- func SetDebugMode(debugMode bool) OptionFunc
- func SetJaegerMaxPacketSize(max int) OptionFunc
- func SetServerOptions(serverOpts ...grpc.ServerOption) OptionFunc
- func SetSharedListener(sharedListener cmux.CMux) OptionFunc
- func SetTCPPort(port uint16) OptionFunc
- func SetTLSConfig(tlsConfig *tls.Config) OptionFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServer ¶
func NewServer(service factory.ServiceFactory, opts ...OptionFunc) factory.AppServerFactory
NewServer create new GRPC server
Types ¶
type OptionFunc ¶ added in v1.7.4
type OptionFunc func(*option)
OptionFunc type
func SetDebugMode ¶ added in v1.7.4
func SetDebugMode(debugMode bool) OptionFunc
SetDebugMode option func
func SetJaegerMaxPacketSize ¶ added in v1.7.4
func SetJaegerMaxPacketSize(max int) OptionFunc
SetJaegerMaxPacketSize option func
func SetServerOptions ¶ added in v1.17.0
func SetServerOptions(serverOpts ...grpc.ServerOption) OptionFunc
SetServerOptions option func
func SetSharedListener ¶ added in v1.7.4
func SetSharedListener(sharedListener cmux.CMux) OptionFunc
SetSharedListener option func
func SetTLSConfig ¶ added in v1.17.0
func SetTLSConfig(tlsConfig *tls.Config) OptionFunc
SetTLSConfig option func
Click to show internal directories.
Click to hide internal directories.