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
}
Node represents go-doudou node
var LocalNode *Node
LocalNode store local node globally
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"` }
NodeInfo wraps node information
type NodeOption ¶
type NodeOption func(*Node)
NodeOption sets node properties
func WithData ¶
func WithData(data interface{}) NodeOption
WithData sets data that local node carrying
Click to show internal directories.
Click to hide internal directories.