const.go 960 B

123456789101112131415161718192021222324252627282930313233343536
  1. package common
  2. const (
  3. CONN_DATA_SEQ = "*#*"
  4. COMPRESS_NONE_ENCODE = iota
  5. COMPRESS_NONE_DECODE
  6. COMPRESS_SNAPY_ENCODE
  7. COMPRESS_SNAPY_DECODE
  8. VERIFY_EER = "vkey"
  9. VERIFY_SUCCESS = "sucs"
  10. WORK_MAIN = "main"
  11. WORK_CHAN = "chan"
  12. WORK_SEND_STATUS = "sdst"
  13. WORK_CONFIG = "conf"
  14. WORK_REGISTER = "rgst"
  15. WORD_SECRET = "sert"
  16. WORK_STATUS = "stus"
  17. RES_SIGN = "sign"
  18. RES_MSG = "msg0"
  19. RES_CLOSE = "clse"
  20. NEW_CONN = "conn" //新连接标志
  21. NEW_TASK = "task" //新连接标志
  22. NEW_CONF = "conf" //新连接标志
  23. NEW_HOST = "host" //新连接标志
  24. CONN_TCP = "tcp"
  25. CONN_UDP = "udp"
  26. UnauthorizedBytes = `HTTP/1.1 401 Unauthorized
  27. Content-Type: text/plain; charset=utf-8
  28. WWW-Authenticate: Basic realm="easyProxy"
  29. 401 Unauthorized`
  30. IO_EOF = "PROXYEOF"
  31. ConnectionFailBytes = `HTTP/1.1 404 Not Found
  32. `
  33. )