Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bind ¶
type Bind struct {
Statistics Statistics `xml:"statistics"`
}
type Client ¶
Client implements bind.Client and can be used to query a BIND v2 API.
func NewClient ¶
NewClient returns an initialized Client.
func (*Client) Stats ¶
func (c *Client) Stats(...bind.StatisticGroup) (bind.Statistics, error)
Stats implements bind.Stats. The BIND v2 API doesn't provide individual endpoints for different statistic groups, the passed parameters don't have any effect.
type Server ¶
type Server struct { BootTime time.Time `xml:"boot-time"` ConfigTime time.Time `xml:"config-time"` NSStats []Counter `xml:"nsstat"` QueriesIn []Counter `xml:"queries-in>rdtype"` Requests []Counter `xml:"requests>opcode"` SocketStats []Counter `xml:"socketstat"` ZoneStats []Counter `xml:"zonestat"` }
type Statistics ¶
type Statistics struct { Memory struct{} `xml:"memory"` Server Server `xml:"server"` Socketmgr struct{} `xml:"socketmgr"` Taskmgr bind.TaskManager `xml:"taskmgr"` Views []View `xml:"views>view"` }
type View ¶
Click to show internal directories.
Click to hide internal directories.