worker

package
v2.0.0-rc Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StatusStrings

func StatusStrings() []string

StatusStrings returns a slice of all String values of the enum

Types

type Status

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

func StatusString

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

func StatusValues() []Status

StatusValues returns all values of the enum

func (Status) IsAStatus

func (i Status) IsAStatus() bool

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

func (Status) MarshalJSON

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

MarshalJSON implements the json.Marshaler interface for Status

func (Status) MarshalYAML

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

MarshalYAML implements a YAML Marshaler for Status

func (*Status) Scan

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

func (Status) String

func (i Status) String() string

func (*Status) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaler interface for Status

func (*Status) UnmarshalYAML

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

UnmarshalYAML implements a YAML Unmarshaler for Status

func (Status) Value

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

func (Status) Values

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