Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
var LocalNode *Node
func NewNode ¶
func NewNode(opts ...NodeOption) (*Node, error)
type NodeInfo ¶ added in v0.5.8
type NodeInfo struct { SvcName string `json:"svcName"` Hostname string `json:"hostname"` BaseUrl string `json:"baseUrl"` Status string `json:"status"` Uptime string `json:"uptime"` GoVer string `json:"goVer"` GddVer string `json:"gddVer"` BuildUser string `json:"buildUser"` BuildTime string `json:"buildTime"` Data string `json:"data"` }
type NodeOption ¶
type NodeOption func(*Node)
func WithData ¶
func WithData(data interface{}) NodeOption
Click to show internal directories.
Click to hide internal directories.