reloader

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: Apache-2.0 Imports: 8 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 {
	Listen(network, address string) (net.Listener, error)
	SetupGracefulRestart(context.Context, run.Group)
}

Reloader defines socket reloader contract.

func Create

func Create(ctx context.Context) Reloader

Create a descriptor reload based on tableflip.

type TableflipReloader

type TableflipReloader struct {
	*tableflip.Upgrader
}

TableflipReloader deleagtes socket reloading to tableflip library which his not windows compatible.

func (*TableflipReloader) SetupGracefulRestart

func (t *TableflipReloader) SetupGracefulRestart(ctx context.Context, group run.Group)

SetupGracefulRestart arms the graceful restart handler.

Jump to

Keyboard shortcuts

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