Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option = func(option *Options)
And Option which can be applied to Options.
func WithListen ¶
WithListen allow to directly configure a net.Listen for the server.
func WithListenAddress ¶
WithListenAddress the default listening address.
type Options ¶
type Options struct { // Listen can be given to directly configure the port the grpc server is listening on. Listen net.Listener // ListenAddress can be used to configure a ListenAddress which is for the grpc server. // This will be ignored when Options.Listen is set. ListenAddress string }
func (*Options) ApplyOptions ¶
ApplyOptions iterates over []Option and applies every single one of them.
func (*Options) InitWithDefaults ¶
func (o *Options) InitWithDefaults()
InitDefaults initialises Options with default values for each setting.
Click to show internal directories.
Click to hide internal directories.