Documentation ¶
Index ¶
- Constants
- type Counter
- type Record
- type Resolver
- func (s *Resolver) DelRecord(c *gin.Context)
- func (r *Resolver) Forward(req *dns.Msg) (reply *dns.Msg, err error)
- func (s *Resolver) GetRecord(c *gin.Context)
- func (s *Resolver) ListRecords(c *gin.Context)
- func (s *Resolver) ShowConfigs(c *gin.Context)
- func (s *Resolver) ShowParentStats(c *gin.Context)
- func (s *Resolver) ShowStats(c *gin.Context)
- func (r *Resolver) Start() error
- func (r *Resolver) Upsert(record *Record) error
- func (s *Resolver) UpsertRecord(c *gin.Context)
- type Stats
- type StatsAlias
Constants ¶
View Source
const (
GATEWAY = "gateway"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Counter ¶
type Counter struct { Requests uint64 `json:"requests"` // nb of client requests Fails uint64 `json:"fails"` // nb of failed requests Authority uint64 `json:"authority"` // nb of authority requests Forward uint64 `json:"forward"` // nb of forward requests TypeA uint64 `json:"type_a"` // nb of A requests TypeSRV uint64 `json:"type_srv"` // nb of SRV requests }
type Record ¶
type Resolver ¶
func (*Resolver) ListRecords ¶
func (*Resolver) ShowConfigs ¶
func (*Resolver) ShowParentStats ¶
func (*Resolver) UpsertRecord ¶
type Stats ¶
type Stats struct { sync.RWMutex // protect the followings two Global *Counter `json:"global"` Parents map[string]*Counter `json:"parents"` // parent -> counter // contains filtered or unexported fields }
func (*Stats) MarshalJSON ¶
type StatsAlias ¶
type StatsAlias Stats
Click to show internal directories.
Click to hide internal directories.