You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
627 B
Go
20 lines
627 B
Go
package model
|
|
|
|
type WebsiteAcmeAccount struct {
|
|
BaseModel
|
|
Email string `gorm:"not null" json:"email"`
|
|
URL string `gorm:"not null" json:"url"`
|
|
PrivateKey string `gorm:"not null" json:"-"`
|
|
Type string `gorm:"not null;default:letsencrypt" json:"type"`
|
|
EabKid string `json:"eabKid"`
|
|
EabHmacKey string `json:"eabHmacKey"`
|
|
KeyType string `gorm:"not null;default:2048" json:"keyType"`
|
|
UseProxy bool `gorm:"default:false" json:"useProxy"`
|
|
CaDirURL string `json:"caDirURL"`
|
|
UseEAB bool `json:"useEAB"`
|
|
}
|
|
|
|
func (w WebsiteAcmeAccount) TableName() string {
|
|
return "website_acme_accounts"
|
|
}
|