Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ListenAddress string `kong:"default=':8080',help='Address on which the service will run',short='l',env='LISTEN_ADDR'"`
ShutdownDuration time.Duration `kong:"default='1s',help='Duration to take to allow existing connections to complete',short='s'"`
WarningDuration time.Duration `kong:"default='1s',help='Duration to take to allow routing algorithms to reroute',short='w'"`
}
Config values for the server
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
func DefaultOptions ¶
func DefaultOptions() *Options
func (*Options) WithConfig ¶
WithConfig sets up stuff from the config
func (*Options) WithHealth ¶
WithHealth sets the health checker used to allow health checks to fail before actually refusing to accept new connections
Click to show internal directories.
Click to hide internal directories.