Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ServerPath is the HTTP path of the v3 server resource. ServerPath = "/xml/v3/server" // StatusPath is the HTTP path of the v3 status resource. StatusPath = "/xml/v3/status" // TasksPath is the HTTP path of the v3 tasks resource. TasksPath = "/xml/v3/tasks" // ZonesPath is the HTTP path of the v3 zones resource. ZonesPath = "/xml/v3/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 XML v3 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 XML 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 {
Server Server `xml:"server"`
Taskmgr bind.TaskManager `xml:"taskmgr"`
Views []View `xml:"views>view"`
}
type ZoneCounter ¶
type ZoneStatistics ¶
type ZoneStatistics struct {
ZoneViews []ZoneView `xml:"views>view"`
}
type ZoneView ¶
type ZoneView struct {
Name string `xml:"name,attr"`
Zones []ZoneCounter `xml:"zones>zone"`
}
Click to show internal directories.
Click to hide internal directories.