Documentation ¶
Overview ¶
Package serveropts contains an echo server options wrapper
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerOption ¶
type ServerOption interface {
// contains filtered or unexported methods
}
func WithConfigProvider ¶
func WithConfigProvider(cfgProvider config.ConfigProvider) ServerOption
WithConfigProvider supplies the config for the server
func WithDatumClient ¶
func WithDatumClient() ServerOption
WithDatumClient supplies the datum client for the server
func WithLogger ¶
func WithLogger(l *zap.SugaredLogger) ServerOption
WithLogger supplies the logger for the server
func WithMiddleware ¶
func WithMiddleware() ServerOption
WithMiddleware adds the middleware to the server
func WithRateLimiter ¶
func WithRateLimiter() ServerOption
WithRateLimiter sets up the rate limiter for the server
type ServerOptions ¶
type ServerOptions struct { ConfigProvider serverconfig.ConfigProvider Config serverconfig.Config }
func NewServerOptions ¶
func NewServerOptions(opts []ServerOption, cfgLoc string) *ServerOptions
func (*ServerOptions) AddServerOptions ¶
func (so *ServerOptions) AddServerOptions(opt ServerOption)
AddServerOptions applies a server option after the initial setup this should be used when information is not available on NewServerOptions
Click to show internal directories.
Click to hide internal directories.