1
0

const.go 698 B

12345678910111213141516171819202122232425262728
  1. package common
  2. const (
  3. COMPRESS_NONE_ENCODE = iota
  4. COMPRESS_NONE_DECODE
  5. COMPRESS_SNAPY_ENCODE
  6. COMPRESS_SNAPY_DECODE
  7. VERIFY_EER = "vkey"
  8. WORK_MAIN = "main"
  9. WORK_CHAN = "chan"
  10. RES_SIGN = "sign"
  11. RES_MSG = "msg0"
  12. RES_CLOSE = "clse"
  13. NEW_CONN = "conn" //新连接标志
  14. NEW_TASK = "task" //新连接标志
  15. CONN_SUCCESS = "sucs"
  16. CONN_TCP = "tcp"
  17. CONN_UDP = "udp"
  18. UnauthorizedBytes = `HTTP/1.1 401 Unauthorized
  19. Content-Type: text/plain; charset=utf-8
  20. WWW-Authenticate: Basic realm="easyProxy"
  21. 401 Unauthorized`
  22. IO_EOF = "PROXYEOF"
  23. ConnectionFailBytes = `HTTP/1.1 404 Not Found
  24. `
  25. )