all.go 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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/speedtest"
  28. _ "v2ray.com/core/proxy/vmess/inbound"
  29. _ "v2ray.com/core/proxy/vmess/outbound"
  30. // Transports
  31. _ "v2ray.com/core/transport/internet/domainsocket"
  32. _ "v2ray.com/core/transport/internet/http"
  33. _ "v2ray.com/core/transport/internet/kcp"
  34. _ "v2ray.com/core/transport/internet/tcp"
  35. _ "v2ray.com/core/transport/internet/tls"
  36. _ "v2ray.com/core/transport/internet/udp"
  37. _ "v2ray.com/core/transport/internet/websocket"
  38. // Transport headers
  39. _ "v2ray.com/core/transport/internet/headers/http"
  40. _ "v2ray.com/core/transport/internet/headers/noop"
  41. _ "v2ray.com/core/transport/internet/headers/srtp"
  42. _ "v2ray.com/core/transport/internet/headers/tls"
  43. _ "v2ray.com/core/transport/internet/headers/utp"
  44. _ "v2ray.com/core/transport/internet/headers/wechat"
  45. // JSON config support. Choose only one from the two below.
  46. // The following line loads JSON from v2ctl
  47. _ "v2ray.com/core/main/json"
  48. // The following line loads JSON internally
  49. // _ "v2ray.com/core/main/jsonem"
  50. // Load config from file or http(s)
  51. _ "v2ray.com/core/main/confloader/external"
  52. )