Documentation ¶
Index ¶
Constants ¶
View Source
const ( // API 提供API访问的服务 APIType = Type("api") // Worker 后台作业服务 NodeType = Type("node") // Scheduler 调度器 SchedulerType = Type("scheduler") )
Variables ¶
This section is empty.
Functions ¶
func EtcdNodePrefix ¶
func EtcdNodePrefix() string
func EtcdNodePrefixWithType ¶
func NodeObjectKey ¶
Types ¶
type Node ¶
type Node struct { Region string `json:"region,omitempty"` ResourceVersion int64 `json:"resourceVersion,omitempty"` InstanceName string `json:"instance_name,omitempty"` ServiceName string `json:"service_name,omitempty"` Type Type `json:"type,omitempty"` Address string `json:"address,omitempty"` Version string `json:"version,omitempty"` GitBranch string `json:"git_branch,omitempty"` GitCommit string `json:"git_commit,omitempty"` BuildEnv string `json:"build_env,omitempty"` BuildAt string `json:"build_at,omitempty"` Online int64 `json:"online,omitempty"` Tag map[string]string `json:"tag,omitempty"` Prefix string `json:"-"` Interval time.Duration `json:"-"` TTL int64 `json:"-"` }
Node todo
func (*Node) MakeObjectKey ¶
MakeObjectKey 构建etcd对应的key 例如: inforboard/workflow/service/node/node-01
func (*Node) ShortDescribe ¶
Click to show internal directories.
Click to hide internal directories.