Versions in this module Expand all Collapse all v1 v1.0.0 Dec 19, 2018 Changes in this version + const AppID + const InstanceStatusUP + const InstancestatusWating + type Action int + const Cancel + const Delete + const Register + const Renew + const Status + const Weight + type App struct + AppID string + Zone string + func NewApp(zone, appid string) (a *App) + func (a *App) Cancel(hostname string, latestTime int64) (i *Instance, l int, ok bool) + func (a *App) Instances() (is []*Instance) + func (a *App) Len() (l int) + func (a *App) NewInstance(ni *Instance, latestTime int64) (i *Instance, ok bool) + func (a *App) Renew(hostname string) (i *Instance, ok bool) + func (a *App) Set(changes *ArgSet) (ok bool) + type Apps struct + func NewApps() *Apps + func (p *Apps) App(zone string) (as []*App) + func (p *Apps) Del(zone string) + func (p *Apps) InstanceInfo(zone string, latestTime int64, status uint32) (ci *InstanceInfo, err error) + func (p *Apps) NewApp(zone, appid string, lts int64) (a *App, new bool) + func (p *Apps) UpdateLatest(latestTime int64) + type ArgCancel struct + AppID string + Env string + Hostname string + LatestTimestamp int64 + Replication bool + Zone string + type ArgFetch struct + AppID string + Env string + Status uint32 + Zone string + type ArgFetchs struct + AppID []string + Env string + Status uint32 + Zone string + type ArgPoll struct + AppID string + Env string + Hostname string + LatestTimestamp int64 + Zone string + type ArgPolls struct + AppID []string + Env string + Hostname string + LatestTimestamp []int64 + Zone string + type ArgRegister struct + Addrs []string + AppID string + DirtyTimestamp int64 + Env string + Hostname string + LatestTimestamp int64 + Metadata string + Region string + Replication bool + Status uint32 + Version string + Zone string + type ArgRenew struct + AppID string + DirtyTimestamp int64 + Env string + Hostname string + Replication bool + Zone string + type ArgSet struct + AppID string + Env string + Hostname []string + Metadata []string + Replication bool + SetTimestamp int64 + Status []uint32 + Zone string + type Instance struct + Addrs []string + AppID string + DirtyTimestamp int64 + Env string + Hostname string + LatestTimestamp int64 + Metadata map[string]string + RegTimestamp int64 + Region string + RenewTimestamp int64 + Status uint32 + UpTimestamp int64 + Version string + Zone string + func NewInstance(arg *ArgRegister) (i *Instance) + type InstanceInfo struct + Instances map[string][]*Instance + LatestTimestamp int64 + type Node struct + Addr string + Status NodeStatus + Zone string + type NodeStatus int + const NodeStatusLost + const NodeStatusUP