Documentation
¶
Overview ¶
Package serveropts contains an echo server options wrapper
Index ¶
- type ServerOption
- func WithAuth(settings map[string]any) ServerOption
- func WithConfigProvider(cfgProvider config.ConfigProvider) ServerOption
- func WithFGAAuthz(settings map[string]any) ServerOption
- func WithHTTPS(settings map[string]any) ServerOption
- func WithLogger(l *zap.SugaredLogger) ServerOption
- func WithReadyChecks(c handlers.Checks) ServerOption
- func WithSQLiteDB(settings map[string]any) ServerOption
- func WithServer(settings map[string]any) ServerOption
- type ServerOptions
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 WithAuth ¶
func WithAuth(settings map[string]any) ServerOption
WithAuth supplies the authn config for the server TODO: expand these settings
func WithConfigProvider ¶
func WithConfigProvider(cfgProvider config.ConfigProvider) ServerOption
WithConfigProvider supplies the config for the server
func WithFGAAuthz ¶
func WithFGAAuthz(settings map[string]any) ServerOption
WithFGAAuthz supplies the FGA authz config for the server
func WithHTTPS ¶
func WithHTTPS(settings map[string]any) ServerOption
WithHTTPS sets up TLS config settings for the server
func WithLogger ¶
func WithLogger(l *zap.SugaredLogger) ServerOption
WithLogger supplies the logger for the server
func WithReadyChecks ¶
func WithReadyChecks(c handlers.Checks) ServerOption
WithReadyChecks adds readiness checks to the server
func WithSQLiteDB ¶
func WithSQLiteDB(settings map[string]any) ServerOption
WithSQLiteDB supplies the sqlite db config for the server
func WithServer ¶
func WithServer(settings map[string]any) ServerOption
WithServer supplies the echo server config for the server
type ServerOptions ¶
type ServerOptions struct { ConfigProvider config.ConfigProvider Config config.Config }
func NewServerOptions ¶
func NewServerOptions(opts []ServerOption) *ServerOptions
Click to show internal directories.
Click to hide internal directories.