server

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reloader

type Reloader interface {
	Reload() error
}

type ServerConfig

type ServerConfig struct {
	Port            uint16        `default:"3000"`
	PIDFile         string        `default:"/tmp/tableflip.pid"`
	ReadTimeout     time.Duration `default:"5s"`
	WriteTimeout    time.Duration `default:"5s"`
	IdleTimeout     time.Duration `default:"30s"`
	GracefulTimeout time.Duration `default:"60s"`
}

func (*ServerConfig) ListenAndServe

func (sc *ServerConfig) ListenAndServe(router http.Handler) error

Jump to

Keyboard shortcuts

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