nps/lib/common/const.go

39 lines
976 B
Go
Raw Normal View History

2019-02-09 09:07:47 +00:00
package common
const (
CONN_DATA_SEQ = "*#*" //Separator
2019-02-23 15:29:48 +00:00
VERIFY_EER = "vkey"
VERIFY_SUCCESS = "sucs"
WORK_MAIN = "main"
WORK_CHAN = "chan"
WORK_CONFIG = "conf"
WORK_REGISTER = "rgst"
2019-02-26 14:40:28 +00:00
WORK_SECRET = "sert"
2019-03-02 09:43:21 +00:00
WORK_FILE = "file"
2019-02-26 14:40:28 +00:00
WORK_P2P = "p2pm"
WORK_P2P_VISITOR = "p2pv"
WORK_P2P_PROVIDER = "p2pp"
2019-04-08 09:01:08 +00:00
WORK_P2P_CONNECT = "p2pc"
WORK_P2P_SUCCESS = "p2ps"
WORK_P2P_END = "p2pe"
WORK_P2P_LAST = "p2pl"
2019-02-23 15:29:48 +00:00
WORK_STATUS = "stus"
RES_MSG = "msg0"
RES_CLOSE = "clse"
2019-02-26 14:40:28 +00:00
NEW_UDP_CONN = "udpc" //p2p udp conn
NEW_TASK = "task"
NEW_CONF = "conf"
NEW_HOST = "host"
2019-02-09 09:07:47 +00:00
CONN_TCP = "tcp"
CONN_UDP = "udp"
2019-03-05 01:23:18 +00:00
CONN_TEST = "TST"
2019-02-09 09:07:47 +00:00
UnauthorizedBytes = `HTTP/1.1 401 Unauthorized
Content-Type: text/plain; charset=utf-8
WWW-Authenticate: Basic realm="easyProxy"
401 Unauthorized`
ConnectionFailBytes = `HTTP/1.1 404 Not Found
`
)