Documentation
¶
Index ¶
- Constants
- func CheckToken(token string) int64
- func CreateBackup(path string)
- func DeleteToken(token string) error
- func GenerateAllModel() []any
- func GenerateJWT(name string) (string, error)
- func Init() *gorm.DB
- type Auth
- type AuthToken
- type Cert
- type CertDomains
- type ChatGPTLog
- type ConfigBackup
- type ConfigBackupListItem
- type DataList
- type DnsCredential
- type JSON
- type JWTClaims
- type Log
- type Method
- type Model
- type Pagination
- type Site
Constants ¶
View Source
const ( AutoCertEnabled = 1 AutoCertDisabled = -1 )
Variables ¶
This section is empty.
Functions ¶
func CheckToken ¶
func CreateBackup ¶
func CreateBackup(path string)
func DeleteToken ¶
func GenerateAllModel ¶ added in v1.7.8
func GenerateAllModel() []any
func GenerateJWT ¶
Types ¶
type Cert ¶
type Cert struct { Model Name string `json:"name"` Domains pq.StringArray `json:"domains" gorm:"type:text[]"` Filename string `json:"filename"` SSLCertificatePath string `json:"ssl_certificate_path"` SSLCertificateKeyPath string `json:"ssl_certificate_key_path"` AutoCert int `json:"auto_cert"` ChallengeMethod string `json:"challenge_method"` DnsCredentialID int `json:"dns_credential_id"` DnsCredential *DnsCredential `json:"dns_credential,omitempty"` Log string `json:"log"` }
func FirstCertByID ¶ added in v1.7.0
func FirstOrCreateCert ¶
func GetAutoCertList ¶
func GetAutoCertList() (c []*Cert)
func GetCertList ¶ added in v1.7.0
type CertDomains ¶ added in v1.7.6
type CertDomains []string
type ChatGPTLog ¶ added in v1.7.8
type ConfigBackup ¶
type ConfigBackup struct { Model Name string `json:"name"` FilePath string `json:"file_path"` Content string `json:"content" gorm:"type:text"` }
func GetBackup ¶
func GetBackup(id int) (config ConfigBackup)
type ConfigBackupListItem ¶
type ConfigBackupListItem struct { Model Name string `json:"name"` FilePath string `json:"file_path"` }
func GetBackupList ¶
func GetBackupList(path string) (configs []ConfigBackupListItem)
type DataList ¶ added in v1.5.0
type DataList struct { Data interface{} `json:"data"` Pagination Pagination `json:"pagination,omitempty"` }
func GetListWithPagination ¶ added in v1.5.0
func GetUserList ¶ added in v1.5.0
type DnsCredential ¶ added in v1.8.0
type JSON ¶ added in v1.7.8
type JSON []openai.ChatCompletionMessage
type JWTClaims ¶
type JWTClaims struct { Name string `json:"name"` jwt.StandardClaims }
type Pagination ¶ added in v1.5.0
Click to show internal directories.
Click to hide internal directories.