apiserver

package
v0.0.0-...-1fc08d0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContextCancelTimeout = 5 * time.Second
	ShutdownTimeout      = 10 * time.Second
	ServerReadTimeout    = 10 * time.Second
	ServerWriteTimeout   = 10 * time.Second
	ServerIdleTimeout    = 60 * time.Second
)

constants.

Variables

This section is empty.

Functions

func New

func New(options ...Option) error

New instantiates new server instance.

Types

type Option

type Option func(*apiServer)

Option represents api server option type.

func WithLogLevel

func WithLogLevel(level string) Option

WithLogLevel sets logLevel option.

func WithServerEnv

func WithServerEnv(env string) Option

WithServerEnv sets serverEnv option.

Jump to

Keyboard shortcuts

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