server

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: BSD-3-Clause-Clear Imports: 18 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