worker

package
v0.4.39 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ToPlatformMap = map[Worker]Platform{
	Aave:       PlatformAAVE,
	Aavegotchi: PlatformAavegotchi,
	Crossbell:  PlatformCrossbell,
	Curve:      PlatformCurve,
	ENS:        PlatformENS,
	Highlight:  PlatformHighlight,
	IQWiki:     PlatformIQWiki,
	KiwiStand:  PlatformKiwiStand,
	Lens:       PlatformLens,
	Lido:       PlatformLido,
	Looksrare:  PlatformLooksRare,
	Matters:    PlatformMatters,
	Mirror:     PlatformMirror,
	Momoka:     PlatformLens,
	Oneinch:    Platform1Inch,
	OpenSea:    PlatformOpenSea,
	Optimism:   PlatformOptimism,
	Paragraph:  PlatformParagraph,
	RSS3:       PlatformRSS3,
	SAVM:       PlatformSAVM,
	Stargate:   PlatformStargate,
	Uniswap:    PlatformUniswap,
	VSL:        PlatformVSL,
}

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 StatusStrings added in v0.4.21

func StatusStrings() []string

StatusStrings 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 (
	PlatformUnknown    Platform = iota // Unknown
	Platform1Inch                      // 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

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

func PlatformValues() []Platform

PlatformValues returns all values of the enum

func (Platform) IsAPlatform

func (i Platform) IsAPlatform() bool

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

func (Platform) MarshalJSON

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

MarshalJSON implements the json.Marshaler interface for Platform

func (Platform) MarshalYAML

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

MarshalYAML implements a YAML Marshaler for Platform

func (*Platform) Scan

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

func (Platform) String

func (i Platform) String() string

func (*Platform) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaler interface for Platform

func (*Platform) UnmarshalYAML

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

UnmarshalYAML implements a YAML Unmarshaler for Platform

func (Platform) Value

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

func (Platform) Values

func (Platform) Values() []string

type Status added in v0.4.21

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

func StatusString added in v0.4.21

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 added in v0.4.21

func StatusValues() []Status

StatusValues returns all values of the enum

func (Status) IsAStatus added in v0.4.21

func (i Status) IsAStatus() bool

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

func (Status) MarshalJSON added in v0.4.21

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

MarshalJSON implements the json.Marshaler interface for Status

func (Status) MarshalYAML added in v0.4.21

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

MarshalYAML implements a YAML Marshaler for Status

func (*Status) Scan added in v0.4.21

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

func (Status) String added in v0.4.21

func (i Status) String() string

func (*Status) UnmarshalJSON added in v0.4.21

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

UnmarshalJSON implements the json.Unmarshaler interface for Status

func (*Status) UnmarshalYAML added in v0.4.21

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

UnmarshalYAML implements a YAML Unmarshaler for Status

func (Status) Value added in v0.4.21

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

func (Status) Values added in v0.4.21

func (Status) Values() []string

type Worker

type Worker int
const (
	Aave       Worker = iota // aave
	Aavegotchi               // aavegotchi
	Core                     // core
	Crossbell                // crossbell
	Curve                    // curve
	ENS                      // ens
	Highlight                // highlight
	IQWiki                   // iqwiki
	KiwiStand                // kiwistand
	Lens                     // lens
	Lido                     // lido
	Looksrare                // looksrare
	Matters                  // matters
	Mirror                   // mirror
	Momoka                   // momoka
	Oneinch                  // 1inch
	OpenSea                  // opensea
	Optimism                 // optimism
	Paragraph                // paragraph
	RSS3                     // rss3
	SAVM                     // savm
	Stargate                 // stargate
	Uniswap                  // uniswap
	VSL                      // vsl
)

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) 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) 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