Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NotFoundError = errors.New("not found")
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) DeleteExpiredItems ¶
func (*DB) DeleteItem ¶
type Item ¶
type Item struct { ID uint `gorm:"primaryKey" json:"-"` PublicID string `gorm:"uniqueIndex" json:"public_id"` Fields string `json:"fields"` ViewOnce bool `json:"view_once"` // auto delete after it was retrieved once CreatedAt time.Time `gorm:"autoCreateTime" json:"created_at"` ExpiresAt time.Time `json:"expires_at"` }
Click to show internal directories.
Click to hide internal directories.