Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { // Structure related CrossbellCharacterID string `json:"crossbell_character_id" gorm:"index;column:crossbell_character_id"` // Metadata Platform string `json:"platform" gorm:"index"` // Platform ID Username string `json:"username" gorm:"index"` // Update related fields LastUpdated time.Time `json:"last_updated"` // Only update when new data found UpdateInterval time.Duration `json:"update_interval"` // UpdateInterval = [min, (NextUpdate - LastUpdated), max] NextUpdate time.Time `json:"next_update" gorm:"index"` // NextUpdate += UpdateInterval FeedsCount uint `json:"feeds_count"` // Recorded feeds NotesCount uint `json:"notes_count"` // On-Chain notes MediaUsage MediaTypeRecordArray `gorm:"type:text" json:"media_usage"` }
type AccountMetrics ¶
type AccountWithAdditionalPropsForListResponse ¶
type AccountWithAdditionalPropsForListResponse struct { Account OnChainStatusManageForAccount IsMetadataCorrect bool `json:"is_metadata_correct"` }
type Character ¶
type Character struct { // Structure related CrossbellCharacterID string `json:"crossbell_character_id" gorm:"primarykey;column:crossbell_character_id"` }
type Feed ¶
type Feed struct { // Structure related AccountID uint `json:"-" gorm:"index"` // Feed Metadata Platform string `json:"platform" gorm:"-"` // For table splitting CollectedAt time.Time `json:"collected_at"` // Related Media MediaIPFSUris pq.StringArray `json:"media_ipfs_uris" gorm:"type:text[];column:media_ipfs_uris"` // Raw feed commonTypes.RawFeed }
type MediaTypeRecord ¶
type MediaTypeRecordArray ¶
type MediaTypeRecordArray []MediaTypeRecord
func (*MediaTypeRecordArray) Scan ¶
func (ma *MediaTypeRecordArray) Scan(src interface{}) error
type Metrics ¶
type Metrics struct { GeneratedAt time.Time `json:"generated_at"` //Address struct { // Total int64 `json:"total"` // How many unique addresses for characters //} `json:"address"` Character struct { Total int64 `json:"total"` Valid int64 `json:"valid"` // With at least one account } `json:"character"` Account AccountMetrics `json:"account"` Platform map[string]PlatformMetrics `json:"platform"` }
type OnChainData ¶
type PlatformMetrics ¶
type PlatformMetrics struct { Feed int64 `json:"feed"` Account AccountMetrics `json:"account"` }
Click to show internal directories.
Click to hide internal directories.