Documentation ¶
Index ¶
Constants ¶
View Source
const ( CodeSuccess = 0 CodeRunning = iota + 1000 CodeExecErr CodeErrNoData CodePending CodePaused )
Variables ¶
View Source
var MsgFlags = map[int]string{ CodeRunning: "running", CodeExecErr: "exec error", CodeErrNoData: "no data", CodePending: "pending", CodePaused: "paused", CodeSuccess: "success", }
Functions ¶
func Upgrade ¶
func Upgrade(w http.ResponseWriter, r *http.Request, handler MsgHandler) (*websocket.Conn, error)
Types ¶
type Gin ¶
func (*Gin) SaveToTarFile ¶ added in v1.0.11
SaveToTarFile 保存为tar压缩文件
func (*Gin) SetNegotiate ¶
SetNegotiate Response res
type MsgHandler ¶
Click to show internal directories.
Click to hide internal directories.