farcaster

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSource

func NewSource(config *config.Module, checkpoint *engine.Checkpoint, databaseClient database.Client) (engine.DataSource, error)

Types

type Option added in v0.2.3

type Option struct {
	APIKey *string `json:"api_key" mapstructure:"api_key"`
}

func NewOption added in v0.2.3

func NewOption(parameters *config.Parameters) (*Option, error)

type State

type State struct {
	EventID           uint64 `json:"event_id"`           // Event ID that has been processed
	CastsFid          uint64 `json:"casts_fid"`          // Casts ID that has been processed in backfill casts
	CastsBackfill     bool   `json:"casts_backfill"`     // Casts backfill flag
	ReactionsFid      uint64 `json:"reactions_fid"`      // Reactions ID that has been processed in backfill reactions
	ReactionsBackfill bool   `json:"reactions_backfill"` // Reactions backfill flag
}

type Task

type Task struct {
	Network network.Network
	Message farcaster.Message
}

func (Task) BuildActivity added in v0.4.13

func (t Task) BuildActivity(options ...activityx.Option) (*activityx.Activity, error)

func (Task) GetNetwork

func (t Task) GetNetwork() network.Network

func (Task) GetTimestamp

func (t Task) GetTimestamp() uint64

func (Task) ID

func (t Task) ID() string

func (Task) Validate

func (t Task) Validate() error

Jump to

Keyboard shortcuts

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