all.go 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. _ "github.com/v2fly/v2ray-core/v4/app/dispatcher"
  6. _ "github.com/v2fly/v2ray-core/v4/app/proxyman/inbound"
  7. _ "github.com/v2fly/v2ray-core/v4/app/proxyman/outbound"
  8. // Default commander and all its services. This is an optional feature.
  9. _ "github.com/v2fly/v2ray-core/v4/app/commander"
  10. _ "github.com/v2fly/v2ray-core/v4/app/log/command"
  11. _ "github.com/v2fly/v2ray-core/v4/app/proxyman/command"
  12. _ "github.com/v2fly/v2ray-core/v4/app/stats/command"
  13. // Developer preview services
  14. _ "github.com/v2fly/v2ray-core/v4/app/observatory/command"
  15. // Other optional features.
  16. _ "github.com/v2fly/v2ray-core/v4/app/dns"
  17. _ "github.com/v2fly/v2ray-core/v4/app/dns/fakedns"
  18. _ "github.com/v2fly/v2ray-core/v4/app/log"
  19. _ "github.com/v2fly/v2ray-core/v4/app/policy"
  20. _ "github.com/v2fly/v2ray-core/v4/app/reverse"
  21. _ "github.com/v2fly/v2ray-core/v4/app/router"
  22. _ "github.com/v2fly/v2ray-core/v4/app/stats"
  23. // Fix dependency cycle caused by core import in internet package
  24. _ "github.com/v2fly/v2ray-core/v4/transport/internet/tagged/taggedimpl"
  25. // Developer preview features
  26. _ "github.com/v2fly/v2ray-core/v4/app/observatory"
  27. // Inbound and outbound proxies.
  28. _ "github.com/v2fly/v2ray-core/v4/proxy/blackhole"
  29. _ "github.com/v2fly/v2ray-core/v4/proxy/dns"
  30. _ "github.com/v2fly/v2ray-core/v4/proxy/dokodemo"
  31. _ "github.com/v2fly/v2ray-core/v4/proxy/freedom"
  32. _ "github.com/v2fly/v2ray-core/v4/proxy/http"
  33. _ "github.com/v2fly/v2ray-core/v4/proxy/mtproto"
  34. _ "github.com/v2fly/v2ray-core/v4/proxy/shadowsocks"
  35. _ "github.com/v2fly/v2ray-core/v4/proxy/socks"
  36. _ "github.com/v2fly/v2ray-core/v4/proxy/trojan"
  37. _ "github.com/v2fly/v2ray-core/v4/proxy/vless/inbound"
  38. _ "github.com/v2fly/v2ray-core/v4/proxy/vless/outbound"
  39. _ "github.com/v2fly/v2ray-core/v4/proxy/vmess/inbound"
  40. _ "github.com/v2fly/v2ray-core/v4/proxy/vmess/outbound"
  41. // Transports
  42. _ "github.com/v2fly/v2ray-core/v4/transport/internet/domainsocket"
  43. _ "github.com/v2fly/v2ray-core/v4/transport/internet/grpc"
  44. _ "github.com/v2fly/v2ray-core/v4/transport/internet/http"
  45. _ "github.com/v2fly/v2ray-core/v4/transport/internet/kcp"
  46. _ "github.com/v2fly/v2ray-core/v4/transport/internet/quic"
  47. _ "github.com/v2fly/v2ray-core/v4/transport/internet/tcp"
  48. _ "github.com/v2fly/v2ray-core/v4/transport/internet/tls"
  49. _ "github.com/v2fly/v2ray-core/v4/transport/internet/udp"
  50. _ "github.com/v2fly/v2ray-core/v4/transport/internet/websocket"
  51. // Transport headers
  52. _ "github.com/v2fly/v2ray-core/v4/transport/internet/headers/http"
  53. _ "github.com/v2fly/v2ray-core/v4/transport/internet/headers/noop"
  54. _ "github.com/v2fly/v2ray-core/v4/transport/internet/headers/srtp"
  55. _ "github.com/v2fly/v2ray-core/v4/transport/internet/headers/tls"
  56. _ "github.com/v2fly/v2ray-core/v4/transport/internet/headers/utp"
  57. _ "github.com/v2fly/v2ray-core/v4/transport/internet/headers/wechat"
  58. _ "github.com/v2fly/v2ray-core/v4/transport/internet/headers/wireguard"
  59. // JSON config support. Choose only one from the two below.
  60. // The following line loads JSON from v2ctl
  61. // _ "github.com/v2fly/v2ray-core/v4/main/json"
  62. // The following line loads JSON internally
  63. _ "github.com/v2fly/v2ray-core/v4/main/jsonem"
  64. // Load config from file or http(s)
  65. _ "github.com/v2fly/v2ray-core/v4/main/confloader/external"
  66. )