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