Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MaxBlockNumber ¶
func MaxBlockNumber(db *pg.DB) uint64
Types ¶
type Depository ¶
type Depository struct { Index string `json:"index" pg:"index"` KID string `json:"kid" pg:"kid,pk"` Platform string `json:"platform" pg:"platform"` Operator string `json:"operator" pg:"operator"` Owner string `json:"owner" pg:"owner"` BlockNumber uint64 `json:"blockNumber" pg:"blockNumber"` TransactionID string `json:"transactionID" pg:"transactionID"` // Content related Name string `json:"name" pg:"name"` ContentName string `json:"contentName" pg:"contentName"` ContentID string `json:"contentID" pg:"contentID"` ContentType string `json:"contentType" pg:"contentType"` TrustedTimestamp int64 `json:"trustedTimestamp" pg:"trustedTimestamp"` ContentSize int64 `json:"contentSize" pg:"contentSize"` Description string `json:"description" pg:"description"` }
Depository defines valuable fields for a depository
func (*Depository) AfterQuery ¶
func (*Depository) AfterQuery(context.Context, *pg.QueryEvent) error
func (*Depository) BeforeQuery ¶
Click to show internal directories.
Click to hide internal directories.