Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoMigrateDatabase ¶
func AutoMigrateDatabase()
Types ¶
type Application ¶
type Application struct {
GModel gorm.Model `gorm:"embedded"`
AppName string `gorm:"column:app_name;type:varchar(32);unique;not null"`
AppKey string `gorm:"column:app_key;type:char(32);unique;not null"`
AppSecret string `gorm:"column:app_secret;type:char(32);unique;not null"`
PublicKey string `gorm:"column:key_public;type:TEXT;not null"`
PrivateKey string `gorm:"column:key_private;type:TEXT;not null"`
Profile string `gorm:"column:profile;type:TEXT"`
}
func (Application) TableName ¶
func (Application) TableName() string
type Key ¶
type Key struct {
GModel gorm.Model `gorm:"embedded"`
AppName string `gorm:"column:app_name;type:varchar(32);not null"`
Number string `gorm:"column:number;type:char(32);unique;not null"`
Capacity int `gorm:"column:capacity;not null;default:1"`
Expiry int `gorm:"column:expiry;not null;default:0"`
Status int `gorm:"column:status;not null;default:0"`
Storage string `gorm:"column:storage"`
Profile string `gorm:"column:profile;type:TEXT"`
}
type License ¶
Click to show internal directories.
Click to hide internal directories.