Documentation
¶
Index ¶
- func CmdAdd(ctx context.Context, client *clientv3.Client, ...) (int, error)
- func CmdLs(ctx context.Context, client *clientv3.Client, showLast, useJSON bool) (int, error)
- func CmdRm(ctx context.Context, client *clientv3.Client, name string) (int, error)
- type Conchd
- type CronHolder
- type CronStatusItem
- type ElectStatusItem
- type JobSpec
- type ResultJSON
- type SemaHolderStatus
- type SemaStatusItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Conchd ¶
type Conchd struct {
StatusAddr string
// contains filtered or unexported fields
}
type CronHolder ¶
type CronHolder struct {
// contains filtered or unexported fields
}
func (*CronHolder) Key ¶
func (ch *CronHolder) Key() string
func (*CronHolder) Name ¶
func (ch *CronHolder) Name() string
type CronStatusItem ¶
type CronStatusItem struct {
Name string `json:"name"`
Schedule string `json:"schedule"`
NextTick string `json:"next_tick"`
LastTick string `json:"last_tick"`
Node string `json:"node"`
Exit *int `json:"exit"`
Duration string `json:"duration"`
}
func GetCronStatus ¶
type ElectStatusItem ¶
type ElectStatusItem struct {
Office string `json:"office"`
Leader string `json:"leader"`
Pid int `json:"pid"`
Started string `json:"started"`
Cmd string `json:"cmd"`
CreateRevision int64 `json:"create_revision"`
}
func GetElectStatus ¶
type ResultJSON ¶
type SemaHolderStatus ¶
type SemaStatusItem ¶
type SemaStatusItem struct {
Name string `json:"name"`
Max int `json:"max"`
Holders []SemaHolderStatus `json:"holders"`
Waitlist []SemaHolderStatus `json:"waitlist"`
}
func GetSemaStatus ¶
Click to show internal directories.
Click to hide internal directories.