1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-02 23:47:07 -05:00
v2fly/main/distro/all/all.go
Xiaokang Wang aaa9e788e7
Grpc Gun Transport (#757)
* introduce grpc transport structure

* fix package name inconsistency

* grpc gun transport dialer and listener

* add selective build tag

* add grpc:gun listener

* add grpc:gun config

* add generated files

* various bug fix for gun:grpc transport

* Cache dialed connections

* grpc:gun Use V2Ray Managed Dial function

* Update destination.pb.go

* Update gun.go

* GunSettings -> GunConfig

* gu -> gs

* add grpc alias

Co-authored-by: RPRX <63339210+rprx@users.noreply.github.com>
Co-authored-by: kslr <kslrwang@gmail.com>
2021-03-11 16:46:17 +08:00

72 lines
3.1 KiB
Go

package all
import (
// The following are necessary as they register handlers in their init functions.
// Required features. Can't remove unless there is replacements.
_ "github.com/v2fly/v2ray-core/v4/app/dispatcher"
_ "github.com/v2fly/v2ray-core/v4/app/proxyman/inbound"
_ "github.com/v2fly/v2ray-core/v4/app/proxyman/outbound"
// Default commander and all its services. This is an optional feature.
_ "github.com/v2fly/v2ray-core/v4/app/commander"
_ "github.com/v2fly/v2ray-core/v4/app/log/command"
_ "github.com/v2fly/v2ray-core/v4/app/proxyman/command"
_ "github.com/v2fly/v2ray-core/v4/app/stats/command"
// Other optional features.
_ "github.com/v2fly/v2ray-core/v4/app/dns"
_ "github.com/v2fly/v2ray-core/v4/app/dns/fakedns"
_ "github.com/v2fly/v2ray-core/v4/app/log"
_ "github.com/v2fly/v2ray-core/v4/app/policy"
_ "github.com/v2fly/v2ray-core/v4/app/reverse"
_ "github.com/v2fly/v2ray-core/v4/app/router"
_ "github.com/v2fly/v2ray-core/v4/app/stats"
_ "github.com/v2fly/v2ray-core/v4/transport/internet/tagged/taggedimpl"
// Inbound and outbound proxies.
_ "github.com/v2fly/v2ray-core/v4/proxy/blackhole"
_ "github.com/v2fly/v2ray-core/v4/proxy/dns"
_ "github.com/v2fly/v2ray-core/v4/proxy/dokodemo"
_ "github.com/v2fly/v2ray-core/v4/proxy/freedom"
_ "github.com/v2fly/v2ray-core/v4/proxy/http"
_ "github.com/v2fly/v2ray-core/v4/proxy/mtproto"
_ "github.com/v2fly/v2ray-core/v4/proxy/shadowsocks"
_ "github.com/v2fly/v2ray-core/v4/proxy/socks"
_ "github.com/v2fly/v2ray-core/v4/proxy/trojan"
_ "github.com/v2fly/v2ray-core/v4/proxy/vless/inbound"
_ "github.com/v2fly/v2ray-core/v4/proxy/vless/outbound"
_ "github.com/v2fly/v2ray-core/v4/proxy/vmess/inbound"
_ "github.com/v2fly/v2ray-core/v4/proxy/vmess/outbound"
// Transports
_ "github.com/v2fly/v2ray-core/v4/transport/internet/domainsocket"
_ "github.com/v2fly/v2ray-core/v4/transport/internet/grpc"
_ "github.com/v2fly/v2ray-core/v4/transport/internet/http"
_ "github.com/v2fly/v2ray-core/v4/transport/internet/kcp"
_ "github.com/v2fly/v2ray-core/v4/transport/internet/quic"
_ "github.com/v2fly/v2ray-core/v4/transport/internet/tcp"
_ "github.com/v2fly/v2ray-core/v4/transport/internet/tls"
_ "github.com/v2fly/v2ray-core/v4/transport/internet/udp"
_ "github.com/v2fly/v2ray-core/v4/transport/internet/websocket"
// Transport headers
_ "github.com/v2fly/v2ray-core/v4/transport/internet/headers/http"
_ "github.com/v2fly/v2ray-core/v4/transport/internet/headers/noop"
_ "github.com/v2fly/v2ray-core/v4/transport/internet/headers/srtp"
_ "github.com/v2fly/v2ray-core/v4/transport/internet/headers/tls"
_ "github.com/v2fly/v2ray-core/v4/transport/internet/headers/utp"
_ "github.com/v2fly/v2ray-core/v4/transport/internet/headers/wechat"
_ "github.com/v2fly/v2ray-core/v4/transport/internet/headers/wireguard"
// JSON config support. Choose only one from the two below.
// The following line loads JSON from v2ctl
// _ "github.com/v2fly/v2ray-core/v4/main/json"
// The following line loads JSON internally
_ "github.com/v2fly/v2ray-core/v4/main/jsonem"
// Load config from file or http(s)
_ "github.com/v2fly/v2ray-core/v4/main/confloader/external"
)