graceful

package
v0.0.0-...-303e327 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(config *Config)

Types

type Config

type Config struct {
	Entry           programEntry
	ListenAddresses []string
}

type State

type State struct {
	ListenAddresses []string
	ListenerFds     []net.Listener
	CloseCh         chan interface{}
}

State hold the server running info, such as listener fd and listen address, close channel that use for the shutdown notification

Jump to

Keyboard shortcuts

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