all.go 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. package all
  2. import (
  3. // The following are necessary as they register handlers in their init functions.
  4. // Required features. Can't remove unless there is replacements.
  5. _ "v2ray.com/core/app/dispatcher"
  6. _ "v2ray.com/core/app/proxyman/inbound"
  7. _ "v2ray.com/core/app/proxyman/outbound"
  8. // Default commander and all its services. This is an optional feature.
  9. _ "v2ray.com/core/app/commander"
  10. _ "v2ray.com/core/app/log/command"
  11. _ "v2ray.com/core/app/proxyman/command"
  12. _ "v2ray.com/core/app/stats/command"
  13. // Other optional features.
  14. _ "v2ray.com/core/app/dns"
  15. _ "v2ray.com/core/app/log"
  16. _ "v2ray.com/core/app/policy"
  17. _ "v2ray.com/core/app/router"
  18. _ "v2ray.com/core/app/stats"
  19. // Inbound and outbound proxies.
  20. _ "v2ray.com/core/proxy/blackhole"
  21. _ "v2ray.com/core/proxy/dokodemo"
  22. _ "v2ray.com/core/proxy/freedom"
  23. _ "v2ray.com/core/proxy/http"
  24. _ "v2ray.com/core/proxy/mtproto"
  25. _ "v2ray.com/core/proxy/shadowsocks"
  26. _ "v2ray.com/core/proxy/socks"
  27. _ "v2ray.com/core/proxy/vmess/inbound"
  28. _ "v2ray.com/core/proxy/vmess/outbound"
  29. // Transports
  30. _ "v2ray.com/core/transport/internet/domainsocket"
  31. _ "v2ray.com/core/transport/internet/http"
  32. _ "v2ray.com/core/transport/internet/kcp"
  33. _ "v2ray.com/core/transport/internet/tcp"
  34. _ "v2ray.com/core/transport/internet/tls"
  35. _ "v2ray.com/core/transport/internet/udp"
  36. _ "v2ray.com/core/transport/internet/websocket"
  37. // Transport headers
  38. _ "v2ray.com/core/transport/internet/headers/http"
  39. _ "v2ray.com/core/transport/internet/headers/noop"
  40. _ "v2ray.com/core/transport/internet/headers/srtp"
  41. _ "v2ray.com/core/transport/internet/headers/tls"
  42. _ "v2ray.com/core/transport/internet/headers/utp"
  43. _ "v2ray.com/core/transport/internet/headers/wechat"
  44. // JSON config support. Choose only one from the two below.
  45. // The following line loads JSON from v2ctl
  46. _ "v2ray.com/core/main/json"
  47. // The following line loads JSON internally
  48. // _ "v2ray.com/core/main/jsonem"
  49. // Load config from file or http(s)
  50. _ "v2ray.com/core/main/confloader/external"
  51. )