Documentation ¶
Index ¶
Constants ¶
View Source
const (
// FeedSpamLimit The restriction conditions for judging the feed to be spam cannot be changed at will.
FeedSpamLimit = 100
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checkpoint ¶
type Checkpoint struct { ID string `gorm:"column:id"` Network filter.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 Feed ¶
type Feed struct { ID string `gorm:"column:id"` Network filter.Network `gorm:"column:network"` Platform *filter.Platform `gorm:"column:platform"` Index uint `gorm:"column:index"` From string `gorm:"column:from"` To string `gorm:"column:to"` Tag filter.Tag `gorm:"column:tag"` Type string `gorm:"column:type"` Status bool `gorm:"column:status"` Fee *Fee `gorm:"column:fee;type:jsonb"` TotalActions uint `gorm:"column:total_actions"` Actions FeedActions `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"` }
type FeedAction ¶
type FeedActions ¶
type FeedActions []*FeedAction
func (*FeedActions) Scan ¶
func (f *FeedActions) Scan(value any) error
type Index ¶
type Index struct { ID string `gorm:"column:id"` Owner string `gorm:"column:owner"` Network filter.Network `gorm:"column:network"` Platform *filter.Platform `gorm:"column:platform"` Index uint `gorm:"column:index"` Tag filter.Tag `gorm:"column:tag"` Type string `gorm:"column:type"` Status bool `gorm:"column:status"` Direction filter.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.