Documentation ¶ Index ¶ func GetListenAndServeFunc(options ...Option) (func() error, error) type Option func WithDebug(debug bool) Option func WithLogger(logger *logrus.Logger) Option func WithTLS(tlsCertPath, tlsKeyPath, clientCAPath *string) Option Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetListenAndServeFunc ¶ func GetListenAndServeFunc(options ...Option) (func() error, error) Types ¶ type Option ¶ added in v0.20.0 type Option func(s *serverConfig) Option applies a configuration option to the given config. func WithDebug ¶ added in v0.20.0 func WithDebug(debug bool) Option func WithLogger ¶ added in v0.20.0 func WithLogger(logger *logrus.Logger) Option func WithTLS ¶ added in v0.20.0 func WithTLS(tlsCertPath, tlsKeyPath, clientCAPath *string) Option Source Files ¶ View all Source files server.go Click to show internal directories. Click to hide internal directories.