Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ActivitySpamLimit this limit of actions in a single activity, mark as spam if exceeds.
ActivitySpamLimit = 100
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Activities ¶
type Activities []*Activity
type Activity ¶
type Activity struct { ID string `gorm:"column:id"` Network network.Network `gorm:"column:network"` Platform string `gorm:"column:platform"` Index uint `gorm:"column:index"` From string `gorm:"column:from"` To string `gorm:"column:to"` Tag tag.Tag `gorm:"column:tag"` Type string `gorm:"column:type"` Status bool `gorm:"column:status"` Fee *Fee `gorm:"column:fee;type:jsonb"` Calldata *Calldata `gorm:"column:calldata;type:jsonb"` TotalActions uint `gorm:"column:total_actions"` Actions ActivityActions `gorm:"column:actions;type:jsonb"` Timestamp time.Time `gorm:"column:timestamp"` CreatedAt time.Time `gorm:"column:created_at;autoCreateTime"` UpdatedAt time.Time `gorm:"column:updated_at;autoUpdateTime"` }
func (*Activity) PartitionName ¶
type ActivityAction ¶
type ActivityActions ¶
type ActivityActions []*ActivityAction
func (*ActivityActions) Scan ¶
func (f *ActivityActions) Scan(value any) error
type Calldata ¶
type Checkpoint ¶
type Checkpoint struct { ID string `gorm:"column:id"` Network network.Network `gorm:"column:network"` Worker string `gorm:"column:worker"` State json.RawMessage `gorm:"column:state;type:jsonb"` IndexCount int64 `gorm:"column:index_count"` CreatedAt time.Time `gorm:"column:created_at;autoCreateTime"` UpdatedAt time.Time `gorm:"column:updated_at;autoUpdateTime"` }
func (*Checkpoint) Export ¶
func (c *Checkpoint) Export() (*engine.Checkpoint, error)
func (*Checkpoint) Import ¶
func (c *Checkpoint) Import(checkpoint *engine.Checkpoint) (err error)
type DatasetENSNamehash ¶
type DatasetENSNamehash struct { Hash common.Hash `gorm:"column:hash;primary_key"` Name string `gorm:"column:name;index:idx_ensnamehash_name"` }
func (*DatasetENSNamehash) Export ¶
func (d *DatasetENSNamehash) Export() (*model.ENSNamehash, error)
func (*DatasetENSNamehash) Import ¶
func (d *DatasetENSNamehash) Import(ensNamehash *model.ENSNamehash) (err error)
type DatasetFarcasterProfile ¶
type DatasetFarcasterProfile struct { Fid int64 `gorm:"column:fid"` Username string `gorm:"column:username"` CustodyAddress string `gorm:"column:custody_address"` EthAddresses pq.StringArray `gorm:"column:eth_addresses;type:text[]"` }
type DatasetMirrorPost ¶
type DatasetMirrorPost struct { ID string `gorm:"column:id;primary_key"` OriginContentDigest string `gorm:"column:origin_content_digest;index:idx_origin_content_digest"` }
DatasetMirrorPost represents a mirror post for revise logic check.
func (*DatasetMirrorPost) Export ¶
func (p *DatasetMirrorPost) Export() (*model.DatasetMirrorPost, error)
func (*DatasetMirrorPost) Import ¶
func (p *DatasetMirrorPost) Import(post *model.DatasetMirrorPost) (err error)
type Fee ¶
type Index ¶
type Index struct { ID string `gorm:"column:id"` Owner string `gorm:"column:owner"` Network network.Network `gorm:"column:network"` Platform string `gorm:"column:platform"` Index uint `gorm:"column:index"` Tag tag.Tag `gorm:"column:tag"` Type string `gorm:"column:type"` Status bool `gorm:"column:status"` Direction activityx.Direction `gorm:"column:direction"` Timestamp time.Time `gorm:"column:timestamp"` CreatedAt time.Time `gorm:"column:created_at;autoCreateTime"` UpdatedAt time.Time `gorm:"column:updated_at;autoUpdateTime"` }
func (*Index) PartitionName ¶
Click to show internal directories.
Click to hide internal directories.