Documentation ¶
Index ¶
- Constants
- type AppSecurity
- type AppSecuritySet
- type AppSetting
- type CR
- type DeleteRecordRequest
- type DnsRecord
- type DnsRecordResp
- type DnsServer
- type DnsServerConfig
- type HttpRecord
- type HttpRecordResp
- type LoginRequest
- type LoginResponse
- type MyClaims
- type Pagination
- type Permission
- type PermissionActionSet
- type Resolve
- type ResolveItem
- type ResolveList
- type ResolveResult
- type Role
- type TranslateItem
- type UserInfo
- type UserListResp
- type UserRequest
- type WebServer
- func (h *WebServer) Index(c *gin.Context)
- func (self *WebServer) IsDuplicate(err error) bool
- func (self *WebServer) ResetPassword(user, password string) error
- func (self *WebServer) Run() error
- func (self *WebServer) RunStoreRoutine()
- func (self *WebServer) Shutdown(ctx context.Context) error
- func (h *WebServer) Status(c *gin.Context)
- type WebServerConfig
Constants ¶
View Source
const ( LOG_TTL = 0 NS_TTL = 600 DEFAULT_TTL = 300 XIP_TTL = 86400 * 7 // one week CUSTOM_REBIND_EXPIRE = 3600 * time.Second )
View Source
const ( CodeOK = models.CodeOK CodeBadPermission = models.CodeBadPermission CodeBadData = models.CodeBadData CodeNoAuth = models.CodeNoAuth CodeNoPermission = models.CodeNoPermission CodeServerInternal = models.CodeServerInternal CodeNoData = models.CodeNoData CodeExpire = models.CodeExpire )
============================================================================== api models ==============================================================================
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppSecurity ¶
type AppSecurity models.AppSecurity
type AppSecuritySet ¶
type AppSecuritySet models.AppSecuritySet
type AppSetting ¶
type AppSetting models.AppSetting
type DeleteRecordRequest ¶
type DeleteRecordRequest models.DeleteRecordRequest
type DnsRecordResp ¶
type DnsRecordResp models.DnsRecordResp
type DnsServer ¶
type DnsServer struct { DnsServerConfig // contains filtered or unexported fields }
func NewDnsServer ¶
func NewDnsServer(cfg *DnsServerConfig, store *cache.Cache) (*DnsServer, error)
type DnsServerConfig ¶
type HttpRecord ¶
type HttpRecord models.HttpRecord
type HttpRecordResp ¶
type HttpRecordResp models.HttpRecordResp
type LoginRequest ¶
type LoginRequest models.LoginRequest
type LoginResponse ¶
type LoginResponse models.LoginResponse
type Pagination ¶
type Pagination models.Pagination
type Permission ¶
type Permission models.Permission
type PermissionActionSet ¶
type PermissionActionSet models.PermissionActionSet
type ResolveItem ¶ added in v0.6.1
type ResolveList ¶ added in v0.6.1
type ResolveList []*ResolveItem
type ResolveResult ¶ added in v0.6.1
type ResolveResult struct { Pagination Data ResolveList `json:"data"` }
type TranslateItem ¶ added in v0.6.1
type UserListResp ¶
type UserListResp models.UserListResp
type UserRequest ¶
type UserRequest models.UserRequest
type WebServer ¶
type WebServer struct { WebServerConfig // contains filtered or unexported fields }
func NewWebServer ¶
func NewWebServer(cfg *WebServerConfig, store *cache.Cache) (*WebServer, error)
func (*WebServer) Index ¶
Reference: https://github.com/fanjq99/dnslog.git
func (*WebServer) IsDuplicate ¶
func (*WebServer) ResetPassword ¶ added in v0.4.0
func (*WebServer) RunStoreRoutine ¶
func (self *WebServer) RunStoreRoutine()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.