reloader

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 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 reloader.

type UnsupportedReloader

type UnsupportedReloader struct {
}

UnsupportedReloader is the file descriptor reloader mock for Windows.

func (*UnsupportedReloader) Listen

func (t *UnsupportedReloader) Listen(network, address string) (net.Listener, error)

Listen create a listener socket.

func (*UnsupportedReloader) SetupGracefulRestart

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

SetupGracefulRestart does nothing on Windows.

Jump to

Keyboard shortcuts

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