Documentation
¶
Index ¶
Constants ¶
View Source
const ( DeployFail = 0 RepoFollow = 1 AfterPullScript = 2 Rsync = 3 DeploySuccess = 4 )
View Source
const ( TypeProject = 1 TypeMonitor = 3 )
View Source
const (
MonitorTurnOff = 0
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Hub ¶
type Hub struct { // Inbound messages from the clients. Data chan *Data // Register requests from the clients. Register chan *Client // Unregister requests from clients. Unregister chan *Client // contains filtered or unexported fields }
Hub is a client struct
type MonitorMessage ¶ added in v1.0.3
type MonitorMessage struct { MonitorID int64 `json:"monitorId"` State uint8 `json:"state"` ErrorContent string `json:"errorContent"` }
ProjectMessage is publish project message struct
Click to show internal directories.
Click to hide internal directories.