Documentation ¶
Index ¶
- Variables
- func WorkerStrings() []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 ¶
View Source
var ToIconURLMap = map[Worker]string{ RSSHub: "https://storage.googleapis.com/rss3-icon/rsshub.png", }
ToTagsMap is a map of worker to tags
Functions ¶
func WorkerStrings ¶
func WorkerStrings() []string
WorkerStrings returns a slice of all String values of the enum
Types ¶
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
Click to show internal directories.
Click to hide internal directories.