rss

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ToPlatformMap = map[Worker]Platform{
	Core: PlatformRSSHub,
}

ToPlatformMap is a map of worker to platform

View Source
var ToTagsMap = map[Worker][]tag.Tag{
	Core: {tag.RSS},
}

ToTagsMap is a map of worker to tags

Functions

func PlatformStrings added in v1.1.0

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 added in v1.1.0

type Platform uint64
const (
	PlatformUnknown Platform = iota // Unknown
	PlatformRSSHub                  // RSSHub
)

func PlatformString added in v1.1.0

func PlatformString(s string) (Platform, error)

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 added in v1.1.0

func PlatformValues() []Platform

PlatformValues returns all values of the enum

func (Platform) IsAPlatform added in v1.1.0

func (i Platform) IsAPlatform() bool

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

func (Platform) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaler interface for Platform

func (Platform) MarshalYAML added in v1.1.0

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

MarshalYAML implements a YAML Marshaler for Platform

func (*Platform) Scan added in v1.1.0

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

func (Platform) String added in v1.1.0

func (i Platform) String() string

func (*Platform) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaler interface for Platform

func (*Platform) UnmarshalParam added in v1.1.0

func (p *Platform) UnmarshalParam(param string) error

func (*Platform) UnmarshalYAML added in v1.1.0

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

UnmarshalYAML implements a YAML Unmarshaler for Platform

func (Platform) Value added in v1.1.0

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

func (Platform) Values added in v1.1.0

func (Platform) Values() []string

type Worker

type Worker int
const (
	Core Worker = iota + 1 // core
)

func GetValueByWorkerStr

func GetValueByWorkerStr(workerStr string) Worker

func WorkerString

func WorkerString(s string) (Worker, error)

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

func WorkerValues

func WorkerValues() []Worker

WorkerValues returns all values of the enum

func (Worker) Component

func (w Worker) Component() string

func (Worker) IsAWorker

func (i Worker) IsAWorker() bool

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

func (Worker) MarshalJSON

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

MarshalJSON implements the json.Marshaler interface for Worker

func (Worker) MarshalYAML

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

MarshalYAML implements a YAML Marshaler for Worker

func (Worker) Name

func (w Worker) Name() string

func (*Worker) Scan

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

func (Worker) String

func (i Worker) String() string

func (*Worker) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaler interface for Worker

func (*Worker) UnmarshalParam

func (w *Worker) UnmarshalParam(param string) error

func (*Worker) UnmarshalYAML

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

UnmarshalYAML implements a YAML Unmarshaler for Worker

func (Worker) Value

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

func (Worker) Values

func (Worker) Values() []string

Jump to

Keyboard shortcuts

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