all.go 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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/reverse"
  18. _ "v2ray.com/core/app/router"
  19. _ "v2ray.com/core/app/stats"
  20. // Inbound and outbound proxies.
  21. _ "v2ray.com/core/proxy/blackhole"
  22. _ "v2ray.com/core/proxy/dns"
  23. _ "v2ray.com/core/proxy/dokodemo"
  24. _ "v2ray.com/core/proxy/freedom"
  25. _ "v2ray.com/core/proxy/http"
  26. _ "v2ray.com/core/proxy/mtproto"
  27. _ "v2ray.com/core/proxy/shadowsocks"
  28. _ "v2ray.com/core/proxy/socks"
  29. _ "v2ray.com/core/proxy/vless/inbound"
  30. _ "v2ray.com/core/proxy/vless/outbound"
  31. _ "v2ray.com/core/proxy/vmess/inbound"
  32. _ "v2ray.com/core/proxy/vmess/outbound"
  33. // Transports
  34. _ "v2ray.com/core/transport/internet/domainsocket"
  35. _ "v2ray.com/core/transport/internet/http"
  36. _ "v2ray.com/core/transport/internet/kcp"
  37. _ "v2ray.com/core/transport/internet/quic"
  38. _ "v2ray.com/core/transport/internet/tcp"
  39. _ "v2ray.com/core/transport/internet/tls"
  40. _ "v2ray.com/core/transport/internet/udp"
  41. _ "v2ray.com/core/transport/internet/websocket"
  42. // Transport headers
  43. _ "v2ray.com/core/transport/internet/headers/http"
  44. _ "v2ray.com/core/transport/internet/headers/noop"
  45. _ "v2ray.com/core/transport/internet/headers/srtp"
  46. _ "v2ray.com/core/transport/internet/headers/tls"
  47. _ "v2ray.com/core/transport/internet/headers/utp"
  48. _ "v2ray.com/core/transport/internet/headers/wechat"
  49. _ "v2ray.com/core/transport/internet/headers/wireguard"
  50. // JSON config support. Choose only one from the two below.
  51. // The following line loads JSON from v2ctl
  52. _ "v2ray.com/core/main/json"
  53. // The following line loads JSON internally
  54. // _ "v2ray.com/core/main/jsonem"
  55. // Load config from file or http(s)
  56. _ "v2ray.com/core/main/confloader/external"
  57. )