worker

package
v0.5.30 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StatusStrings added in v0.4.21

func StatusStrings() []string

StatusStrings returns a slice of all String values of the enum

Types

type Status added in v0.4.21

type Status uint64
const (
	StatusUnknown   Status = iota // Unknown
	StatusIndexing                // Indexing
	StatusReady                   // Ready
	StatusUnhealthy               // Unhealthy
)

func StatusString added in v0.4.21

func StatusString(s string) (Status, error)

StatusString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func StatusValues added in v0.4.21

func StatusValues() []Status

StatusValues returns all values of the enum

func (Status) IsAStatus added in v0.4.21

func (i Status) IsAStatus() bool

IsAStatus returns "true" if the value is listed in the enum definition. "false" otherwise

func (Status) MarshalJSON added in v0.4.21

func (i Status) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for Status

func (Status) MarshalYAML added in v0.4.21

func (i Status) MarshalYAML() (interface{}, error)

MarshalYAML implements a YAML Marshaler for Status

func (*Status) Scan added in v0.4.21

func (i *Status) Scan(value interface{}) error

func (Status) String added in v0.4.21

func (i Status) String() string

func (*Status) UnmarshalJSON added in v0.4.21

func (i *Status) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for Status

func (*Status) UnmarshalYAML added in v0.4.21

func (i *Status) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements a YAML Unmarshaler for Status

func (Status) Value added in v0.4.21

func (i Status) Value() (driver.Value, error)

func (Status) Values added in v0.4.21

func (Status) Values() []string

type Worker

type Worker interface {
	Component() string
	Name() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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