mirror of
https://github.com/fatedier/frp.git
synced 2025-01-23 01:52:09 +00:00
28 lines
379 B
Go
28 lines
379 B
Go
|
package models
|
||
|
|
||
|
type GeneralRes struct {
|
||
|
Code int64 `json:"code"`
|
||
|
Msg string `json:"msg"`
|
||
|
}
|
||
|
|
||
|
// type
|
||
|
const (
|
||
|
ControlConn = iota
|
||
|
WorkConn
|
||
|
)
|
||
|
|
||
|
type ClientCtlReq struct {
|
||
|
Type int64 `json:"type"`
|
||
|
ProxyName string `json:"proxy_name"`
|
||
|
Passwd string `json:"passwd"`
|
||
|
}
|
||
|
|
||
|
type ClientCtlRes struct {
|
||
|
GeneralRes
|
||
|
}
|
||
|
|
||
|
|
||
|
type ServerCtlReq struct {
|
||
|
Type int64 `json:"type"`
|
||
|
}
|