all.go 3.2 KB

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