github.com/xraypb/Xray-core@v1.8.1/main/distro/all/all.go (about)

     1  package all
     2  
     3  import (
     4  	// The following are necessary as they register handlers in their init functions.
     5  
     6  	// Mandatory features. Can't remove unless there are replacements.
     7  	_ "github.com/xraypb/Xray-core/app/dispatcher"
     8  	_ "github.com/xraypb/Xray-core/app/proxyman/inbound"
     9  	_ "github.com/xraypb/Xray-core/app/proxyman/outbound"
    10  
    11  	// Default commander and all its services. This is an optional feature.
    12  	_ "github.com/xraypb/Xray-core/app/commander"
    13  	_ "github.com/xraypb/Xray-core/app/log/command"
    14  	_ "github.com/xraypb/Xray-core/app/proxyman/command"
    15  	_ "github.com/xraypb/Xray-core/app/stats/command"
    16  
    17  	// Developer preview services
    18  	_ "github.com/xraypb/Xray-core/app/observatory/command"
    19  
    20  	// Other optional features.
    21  	_ "github.com/xraypb/Xray-core/app/dns"
    22  	_ "github.com/xraypb/Xray-core/app/dns/fakedns"
    23  	_ "github.com/xraypb/Xray-core/app/log"
    24  	_ "github.com/xraypb/Xray-core/app/metrics"
    25  	_ "github.com/xraypb/Xray-core/app/policy"
    26  	_ "github.com/xraypb/Xray-core/app/reverse"
    27  	_ "github.com/xraypb/Xray-core/app/router"
    28  	_ "github.com/xraypb/Xray-core/app/stats"
    29  
    30  	// Fix dependency cycle caused by core import in internet package
    31  	_ "github.com/xraypb/Xray-core/transport/internet/tagged/taggedimpl"
    32  
    33  	// Developer preview features
    34  	_ "github.com/xraypb/Xray-core/app/observatory"
    35  
    36  	// Inbound and outbound proxies.
    37  	_ "github.com/xraypb/Xray-core/proxy/blackhole"
    38  	_ "github.com/xraypb/Xray-core/proxy/dns"
    39  	_ "github.com/xraypb/Xray-core/proxy/dokodemo"
    40  	_ "github.com/xraypb/Xray-core/proxy/freedom"
    41  	_ "github.com/xraypb/Xray-core/proxy/http"
    42  	_ "github.com/xraypb/Xray-core/proxy/loopback"
    43  	_ "github.com/xraypb/Xray-core/proxy/mtproto"
    44  	_ "github.com/xraypb/Xray-core/proxy/shadowsocks"
    45  	_ "github.com/xraypb/Xray-core/proxy/socks"
    46  	_ "github.com/xraypb/Xray-core/proxy/trojan"
    47  	_ "github.com/xraypb/Xray-core/proxy/vless/inbound"
    48  	_ "github.com/xraypb/Xray-core/proxy/vless/outbound"
    49  	_ "github.com/xraypb/Xray-core/proxy/vmess/inbound"
    50  	_ "github.com/xraypb/Xray-core/proxy/vmess/outbound"
    51  	_ "github.com/xraypb/Xray-core/proxy/wireguard"
    52  
    53  	// Transports
    54  	_ "github.com/xraypb/Xray-core/transport/internet/domainsocket"
    55  	_ "github.com/xraypb/Xray-core/transport/internet/grpc"
    56  	_ "github.com/xraypb/Xray-core/transport/internet/http"
    57  	_ "github.com/xraypb/Xray-core/transport/internet/kcp"
    58  	_ "github.com/xraypb/Xray-core/transport/internet/quic"
    59  	_ "github.com/xraypb/Xray-core/transport/internet/reality"
    60  	_ "github.com/xraypb/Xray-core/transport/internet/tcp"
    61  	_ "github.com/xraypb/Xray-core/transport/internet/tls"
    62  	_ "github.com/xraypb/Xray-core/transport/internet/udp"
    63  	_ "github.com/xraypb/Xray-core/transport/internet/websocket"
    64  
    65  	// Transport headers
    66  	_ "github.com/xraypb/Xray-core/transport/internet/headers/http"
    67  	_ "github.com/xraypb/Xray-core/transport/internet/headers/noop"
    68  	_ "github.com/xraypb/Xray-core/transport/internet/headers/srtp"
    69  	_ "github.com/xraypb/Xray-core/transport/internet/headers/tls"
    70  	_ "github.com/xraypb/Xray-core/transport/internet/headers/utp"
    71  	_ "github.com/xraypb/Xray-core/transport/internet/headers/wechat"
    72  	_ "github.com/xraypb/Xray-core/transport/internet/headers/wireguard"
    73  
    74  	// JSON & TOML & YAML
    75  	_ "github.com/xraypb/Xray-core/main/json"
    76  	_ "github.com/xraypb/Xray-core/main/toml"
    77  	_ "github.com/xraypb/Xray-core/main/yaml"
    78  
    79  	// Load config from file or http(s)
    80  	_ "github.com/xraypb/Xray-core/main/confloader/external"
    81  
    82  	// Commands
    83  	_ "github.com/xraypb/Xray-core/main/commands/all"
    84  )