Documentation ¶
Index ¶
Constants ¶
View Source
const (
// APIPrefix defines a prefix string for fault-trigger api
APIPrefix = "/pingcap.com/api/v1"
)
Variables ¶
This section is empty.
Functions ¶
func ExtractResponse ¶
ExtractResponse extract response from api
Types ¶
type Response ¶
type Response struct { Action string `json:"action"` StatusCode int `json:"status_code"` Message string `json:"message,omitempty"` Payload interface{} `json:"payload,omitempty"` }
Response defines a new response struct for http
Click to show internal directories.
Click to hide internal directories.