server_options

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: MIT Imports: 3 Imported by: 7

Documentation

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 WithAPIMiddleware

func WithAPIMiddleware(middleware []api.Middleware) ServerOption

WithAPIMiddleware supplies API middleware

func WithConfigProvider

func WithConfigProvider(cfgProvider config.ConfigProvider) ServerOption

WithConfigProvider supplies the config for the UI server

func WithSessionStore added in v2.3.0

func WithSessionStore(store sessions.Store) ServerOption

WithSessionStore supplies the session store for the UI server

type ServerOptions

type ServerOptions struct {
	ConfigProvider config.ConfigProvider
	APIMiddleware  []api.Middleware
	SessionStore   sessions.Store
}

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