server_options

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: MIT Imports: 2 Imported by: 1

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 added in v0.15.0

func WithAPIMiddleware(middleware []api.Middleware) ServerOption

WithAPIMiddleware supplies API middleware

func WithConfigProvider added in v0.3.0

func WithConfigProvider(cfgProvider config.ConfigProvider) ServerOption

WithConfigProvider supplies the config for the UI server

type ServerOptions

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

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