serveropts

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

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 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL