Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
func NewDatabase ¶
func (*Database) Index ¶
func (db *Database) Index(txid string, fd FileDescriptor)
type FileDescriptor ¶
type FileDescriptor struct { gorm.Model Txid string `json:"txid" gorm:"index;unique;not null"` Cid string `json:"cid"` Description string `json:"description"` Category string `json:"category"` Timestamp time.Time `json:"timestamp"` Upvotes int64 `json:"upvotes"` Downvotes int64 `json:"downvotes"` Net int64 `json:"net"` Height uint32 `json:"height"` }
Click to show internal directories.
Click to hide internal directories.