lifecycletest

package
Version: v1.54.2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: MIT Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Nop

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

Nop is a no-op implementation of a lifecycle Once. It advances state but performs no actions.

func NewNop

func NewNop() *Nop

NewNop returns a new one-time no-op lifecycle.

func (*Nop) IsRunning

func (n *Nop) IsRunning() bool

IsRunning returns the Nop lifecycle.Status.

func (*Nop) Start

func (n *Nop) Start() error

Start advances the Nop to Running without side-effects.

func (*Nop) Stop

func (n *Nop) Stop() error

Stop advances the Nop to Stopped without side-effects.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto