Documentation
¶
Index ¶
Constants ¶
View Source
const ( ERROR string = "error" UPDATE = "update" DELETE = "delete" INIT = "init" HEARTBEAT = "heartbeat" )
all the kinds of event
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type ContainerInfo ¶
type Depends ¶
type Depends map[string]map[string]map[string]DependsItem
The Data type return by /v2/depends
type DependsItem ¶
type DependsItem v2.DependsItem
type JSONVirtualIpPortConfig ¶
type JSONVirtualIpPortConfig struct { App string `json:"app"` Proc string `json:"proc"` Port string `json:"port"` Proto string `json:"proto"` ProcType string `json:"proctype"` }
The Data type return by /v2/configwatcher?target=vips
type Response ¶
type Response struct { Id int64 // The event Id, start from 1, and incresed by 1 when event is UPDATE or DELETE, it's always 0 when event is ERROR or HEARTBEAT Event string // the event name // the returned data return by watch request, the Data is a json-format. // you can import `github.com/laincloud/api/v2`, and using the coresponding type to Decode. Data []byte // contains filtered or unexported fields }
the response returned by watch action
Click to show internal directories.
Click to hide internal directories.