server

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: BSD-3-Clause-Clear Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(f ...StartOptions) error

Types

type StartConfig

type StartConfig struct {
	ConfigKey             string
	ConfigFile            string
	WaitForShutdownSignal bool
	PublicRoutes          []string
}

type StartOptions

type StartOptions func(StartConfig) StartConfig

func WithConfigFile

func WithConfigFile(file string) StartOptions

func WithConfigKey

func WithConfigKey(key string) StartOptions

func WithConfigName deprecated

func WithConfigName(name string) StartOptions

Deprecated: Use WithConfigKey

func WithPublicRoutes

func WithPublicRoutes(routes []string) StartOptions

func WithWaitForShutdownSignal

func WithWaitForShutdownSignal() StartOptions

Jump to

Keyboard shortcuts

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