zero

package
v0.0.0-...-883ae94 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	UpgradeSock string
	PIDFile     string
}

func (Options) GetPIDFile

func (opts Options) GetPIDFile() string

func (Options) GetUpgradeSock

func (opts Options) GetUpgradeSock() string

type State

type State int8

type ZeroDownTime

type ZeroDownTime struct {
	// contains filtered or unexported fields
}

func New

func New(opts Options) *ZeroDownTime

func (*ZeroDownTime) Close

func (z *ZeroDownTime) Close(ctx context.Context) error

func (*ZeroDownTime) IsUpgraded

func (z *ZeroDownTime) IsUpgraded() bool

func (*ZeroDownTime) Listener

func (z *ZeroDownTime) Listener(ctx context.Context, network string, address string, cfg *net.ListenConfig) (net.Listener, error)

func (*ZeroDownTime) Shutdown

func (z *ZeroDownTime) Shutdown(ctx context.Context) error

func (*ZeroDownTime) Upgrade

func (z *ZeroDownTime) Upgrade() error

func (*ZeroDownTime) WaitForUpgrade

func (z *ZeroDownTime) WaitForUpgrade(ctx context.Context) error

Jump to

Keyboard shortcuts

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