Documentation ¶
Index ¶
- func New(configurators ...Configurator) (*server, error)
- func RegisterDefaultFlags()
- type Configurator
- func DefaultFlags() Configurator
- func Port(port int) Configurator
- func UsingTLS(certFile, keyFile string) Configurator
- func WithDialOptions(options ...grpc.DialOption) Configurator
- func WithDialer(dialer ContextDialer) Configurator
- func WithInterceptor(interceptor grpc.StreamServerInterceptor) Configurator
- func WithOptions(options ...grpc.ServerOption) Configuratordeprecated
- func WithServerOptions(options ...grpc.ServerOption) Configurator
- type ContextDialer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(configurators ...Configurator) (*server, error)
func RegisterDefaultFlags ¶
func RegisterDefaultFlags()
Must be called before flag.Parse() if using the DefaultFlags option
Types ¶
type Configurator ¶
type Configurator func(*server)
func Port ¶
func Port(port int) Configurator
func UsingTLS ¶
func UsingTLS(certFile, keyFile string) Configurator
func WithDialOptions ¶
func WithDialOptions(options ...grpc.DialOption) Configurator
WithDialOptions allows you to supply a list of grpc.DialOption that will be passed to grpc.Dial when dialing downstream servers.
func WithDialer ¶
func WithDialer(dialer ContextDialer) Configurator
func WithInterceptor ¶
func WithInterceptor(interceptor grpc.StreamServerInterceptor) Configurator
func WithOptions
deprecated
func WithOptions(options ...grpc.ServerOption) Configurator
Deprecated: use WithServerOptions instead
func WithServerOptions ¶
func WithServerOptions(options ...grpc.ServerOption) Configurator
WithServerOptions allows you to supply a list of grpc.ServerOption that will be passed to grpc.NewServer when creating the proxy.
Click to show internal directories.
Click to hide internal directories.