Documentation ¶
Index ¶
- Variables
- func PlatformStrings() []string
- func WorkerStrings() []string
- type Platform
- func (i Platform) IsAPlatform() bool
- func (i Platform) MarshalJSON() ([]byte, error)
- func (i Platform) MarshalYAML() (interface{}, error)
- func (i *Platform) Scan(value interface{}) error
- func (i Platform) String() string
- func (i *Platform) UnmarshalJSON(data []byte) error
- func (p *Platform) UnmarshalParam(param string) error
- func (i *Platform) UnmarshalYAML(unmarshal func(interface{}) error) error
- func (i Platform) Value() (driver.Value, error)
- func (Platform) Values() []string
- type Worker
- func (w Worker) Component() string
- func (i Worker) IsAWorker() bool
- func (i Worker) MarshalJSON() ([]byte, error)
- func (i Worker) MarshalYAML() (interface{}, error)
- func (w Worker) Name() string
- func (i *Worker) Scan(value interface{}) error
- func (i Worker) String() string
- func (i *Worker) UnmarshalJSON(data []byte) error
- func (w *Worker) UnmarshalParam(param string) error
- func (i *Worker) UnmarshalYAML(unmarshal func(interface{}) error) error
- func (i Worker) Value() (driver.Value, error)
- func (Worker) Values() []string
Constants ¶
This section is empty.
Variables ¶
var ToPlatformMap = map[Worker]Platform{ Core: PlatformMastodon, }
ToPlatformMap is a map of worker to platform
ToTagsMap is a map of worker to tags
Functions ¶
func PlatformStrings ¶
func PlatformStrings() []string
PlatformStrings returns a slice of all String values of the enum
func WorkerStrings ¶
func WorkerStrings() []string
WorkerStrings returns a slice of all String values of the enum
Types ¶
type Platform ¶
type Platform uint64
func PlatformString ¶
PlatformString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func PlatformValues ¶
func PlatformValues() []Platform
PlatformValues returns all values of the enum
func (Platform) IsAPlatform ¶
IsAPlatform returns "true" if the value is listed in the enum definition. "false" otherwise
func (Platform) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface for Platform
func (Platform) MarshalYAML ¶
MarshalYAML implements a YAML Marshaler for Platform
func (*Platform) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface for Platform
func (*Platform) UnmarshalParam ¶
func (*Platform) UnmarshalYAML ¶
UnmarshalYAML implements a YAML Unmarshaler for Platform
type Worker ¶
type Worker int
func GetValueByWorkerStr ¶
func WorkerString ¶
WorkerString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func (Worker) IsAWorker ¶
IsAWorker returns "true" if the value is listed in the enum definition. "false" otherwise
func (Worker) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface for Worker
func (Worker) MarshalYAML ¶
MarshalYAML implements a YAML Marshaler for Worker
func (*Worker) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface for Worker
func (*Worker) UnmarshalParam ¶
func (*Worker) UnmarshalYAML ¶
UnmarshalYAML implements a YAML Unmarshaler for Worker