npsResponse.go 745 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
package models

type AuthKey struct {
	CryptAuthKey string `json:"crypt_auth_key"`
	CryptType    string `json:"crypt_type"`
	Status       int64  `json:"status"`
}

type NpsOperateResp struct {
	Msg    string `json:"Msg"`
	Status int64  `json:"Status"`
}

type UnixTime struct {
	Timestamp int64 `json:"time"`
}

type NpsClientInfo struct {
	Id        int64  `json:"Id"`
	Status    bool   `json:"Status"`
	IsConnect bool   `json:"IsConnect"`
	RateLimit int64  `json:"RateLimit"`
	VerifyKey string `json:"VerifyKey"`
	Addr      string `json:"Addr"`
}

type TcpTunnelInfo struct {
	Id        int64  `json:"Id"`
	Port      int64  `json:"Port"`
	Mode      string `json:"Mode"`
	Status    bool   `json:"Status"`
	RunStatus bool   `json:"RunStatus"`
}