2016-01-27 21:24:36 +08:00
|
|
|
package models
|
|
|
|
|
|
|
|
type GeneralRes struct {
|
2016-02-05 16:49:52 +08:00
|
|
|
Code int64 `json:"code"`
|
|
|
|
Msg string `json:"msg"`
|
2016-01-27 21:24:36 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// type
|
|
|
|
const (
|
|
|
|
ControlConn = iota
|
|
|
|
WorkConn
|
|
|
|
)
|
|
|
|
|
|
|
|
type ClientCtlReq struct {
|
2016-02-05 16:49:52 +08:00
|
|
|
Type int64 `json:"type"`
|
|
|
|
ProxyName string `json:"proxy_name"`
|
|
|
|
Passwd string `json:"passwd"`
|
2016-01-27 21:24:36 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type ClientCtlRes struct {
|
|
|
|
GeneralRes
|
|
|
|
}
|
|
|
|
|
|
|
|
type ServerCtlReq struct {
|
2016-02-05 16:49:52 +08:00
|
|
|
Type int64 `json:"type"`
|
2016-01-27 21:24:36 +08:00
|
|
|
}
|