all.go 1.9 KB

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