Documentation
¶
Overview ¶
Package model is responsible for the models
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnmarshalID ¶
UnmarshalID implements reverse marshalling for IDs from strings
Types ¶
type CertRenewJob ¶
type Certificate ¶
type Certificate struct { Model // The lego ACME certificate data certificate.Resource // The ID of the certificate in Hetzner HetznerID int `gorm:"UNIQUE_INDEX:idx_cert_h_id"` }
type CreateCertJob ¶
type Model ¶
type Model struct { ID hide.ID `gorm:"type: bigserial;primary_key" json:"id"` // int64 CreatedAt time.Time UpdatedAt time.Time }
Model Default model structure with hard deleting
type PrivateKey ¶
type SoftDelete ¶
type SoftDelete struct { ID hide.ID `gorm:"type: bigserial;primary_key" json:"id"` // int64 CreatedAt time.Time UpdatedAt time.Time DeletedAt *time.Time }
SoftDelete Default model structure with soft deleting
func (SoftDelete) IDstring ¶
func (m SoftDelete) IDstring() string
IDstring returns the ID as a hash string
type User ¶
type User struct { SoftDelete Username string `gorm:"UNIQUE_INDEX:idx_username"` Password string }
User model
Click to show internal directories.
Click to hide internal directories.