Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InfoHandler ¶
func InfoHandler(configuredID string) http.HandlerFunc
Types ¶
type Plugin ¶
type Plugin struct {
base.BasePlugin
// contains filtered or unexported fields
}
type Response ¶
type Response struct {
EtcdVersion string `json:"etcd_version"`
Hostname string `json:"hostname"`
ID string `json:"id"`
Version string `json:"version"`
BootTime int64 `json:"boot_time"`
}
func CurrentInfo ¶
type View ¶
type View struct {
// contains filtered or unexported fields
}
View is the process-owned server-info snapshot shared by the control API and the etcd reporter. It owns no external client or background task.
func (*View) Handler ¶
func (view *View) Handler() http.HandlerFunc
func (*View) SetEtcdVersion ¶
Click to show internal directories.
Click to hide internal directories.