state

package
v5.21.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Set

func Set(newState State)

Set the state of the server.

func WaitUntil

func WaitUntil(state ...State)

WaitUntil the server is in one of the specified states.

Types

type State

type State int

State is the state of the server.

const (
	Stopped State = iota
	Starting
	Running
	Stopping
)

Possible states for the server.

func Current

func Current() State

Current returns the current state of the server.

Jump to

Keyboard shortcuts

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