Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ServerPath is the HTTP path of the JSON v1 server resource. ServerPath = "/json/v1/server" // TasksPath is the HTTP path of the JSON v1 tasks resource. TasksPath = "/json/v1/tasks" // ZonesPath is the HTTP path of the JSON v1 zones resource. ZonesPath = "/json/v1/zones" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements bind.Client and can be used to query a BIND JSON v1 API.
func (*Client) Get ¶
Get queries the given path and stores the result in the value pointed to by v. The endpoint must return a valid JSON representation which can be unmarshaled into the provided value.
func (*Client) Stats ¶
func (c *Client) Stats(groups ...bind.StatisticGroup) (bind.Statistics, error)
Stats implements bind.Stats.
type Statistics ¶
type Statistics struct {
BootTime time.Time `json:"boot-time"`
ConfigTime time.Time `json:"config-time"`
Opcodes Counters `json:"opcodes"`
QTypes Counters `json:"qtypes"`
NSStats Counters `json:"nsstats"`
Rcodes Counters `json:"rcodes"`
ZoneStats Counters `json:"zonestats"`
Views map[string]struct {
Resolver struct {
Cache Gauges `json:"cache"`
Qtypes Counters `json:"qtypes"`
Stats Counters `json:"stats"`
} `json:"resolver"`
} `json:"views"`
}
type TaskStatistics ¶
Click to show internal directories.
Click to hide internal directories.