common

package
v0.0.0-...-ecfc0d7 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LifeCycle

type LifeCycle struct {
	StartOnce sync.Once
	StopOnce  sync.Once
	// contains filtered or unexported fields
}

LifeCycle is an abstract type that has thread-safe initialization and shutdown

func (*LifeCycle) IsReady

func (l *LifeCycle) IsReady() bool

IsReady returns if lifecycle is ready

func (*LifeCycle) IsStopped

func (l *LifeCycle) IsStopped() bool

IsStopped returns if lifecycle is stopped

func (*LifeCycle) SetReady

func (l *LifeCycle) SetReady(ready bool)

SetReady sets the ready state of lifecycle

func (*LifeCycle) Stop

func (l *LifeCycle) Stop()

Stop set lifecycle status to stopped

Jump to

Keyboard shortcuts

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