Documentation ¶
Index ¶
- func HookFunc() mapstructure.DecodeHookFuncType
- 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 (i *Platform) UnmarshalYAML(unmarshal func(interface{}) error) error
- func (i Platform) Value() (driver.Value, error)
- func (Platform) Values() []string
- type Worker
- func (i Worker) IsAWorker() bool
- func (i Worker) MarshalJSON() ([]byte, error)
- func (i Worker) MarshalYAML() (interface{}, error)
- 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 ¶
This section is empty.
Functions ¶
func HookFunc ¶
func HookFunc() mapstructure.DecodeHookFuncType
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
const ( Platform1Inch Platform = iota // 1inch PlatformAAVE // AAVE PlatformAavegotchi // Aavegotchi PlatformCrossbell // Crossbell PlatformCurve // Curve PlatformENS // ENS PlatformFarcaster // Farcaster PlatformHighlight // Highlight PlatformIQWiki // IQWiki PlatformKiwiStand // KiwiStand PlatformLens // Lens PlatformLido // Lido PlatformLooksRare // LooksRare PlatformMatters // Matters PlatformMirror // Mirror PlatformOpenSea // OpenSea PlatformOptimism // Optimism PlatformParagraph // Paragraph PlatformRSS3 // RSS3 PlatformSAVM // SAVM PlatformStargate // Stargate PlatformUniswap // Uniswap PlatformVSL // VSL )
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) UnmarshalYAML ¶
UnmarshalYAML implements a YAML Unmarshaler for Platform
type Worker ¶
type Worker uint64
const ( Core Worker = iota // core Mirror // mirror RSS3 // rss3 Paragraph // paragraph OpenSea // opensea Uniswap // uniswapz Optimism // optimism Aavegotchi // aavegotchi Lens // lens Looksrare // looksrare Matters // matters Momoka // momoka Highlight // highlight Aave // aave IQWiki // iqwiki Lido // lido Crossbell // crossbell ENS // ens Oneinch // 1inch KiwiStand // kiwistand SAVM // savm VSL // vsl Stargate // stargate Curve // curve )
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