const.go 863 B

1234567891011121314151617181920212223242526272829303132333435
  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_CONFIG = "conf"
  13. WORK_REGISTER = "rgst"
  14. WORK_STATUS = "stus"
  15. RES_SIGN = "sign"
  16. RES_MSG = "msg0"
  17. RES_CLOSE = "clse"
  18. NEW_CONN = "conn" //新连接标志
  19. NEW_TASK = "task" //新连接标志
  20. NEW_CONF = "conf" //新连接标志
  21. NEW_HOST = "host" //新连接标志
  22. CONN_TCP = "tcp"
  23. CONN_UDP = "udp"
  24. UnauthorizedBytes = `HTTP/1.1 401 Unauthorized
  25. Content-Type: text/plain; charset=utf-8
  26. WWW-Authenticate: Basic realm="easyProxy"
  27. 401 Unauthorized`
  28. IO_EOF = "PROXYEOF"
  29. ConnectionFailBytes = `HTTP/1.1 404 Not Found
  30. `
  31. )