Versions in this module Expand all Collapse all v0 v0.0.1 Sep 18, 2023 Changes in this version + func New(ctx context.Context, router adapter.Router, logger log.ContextLogger, ...) (adapter.Inbound, error) + func NewError(logger log.ContextLogger, ctx context.Context, err error) + func NewHysteria(ctx context.Context, router adapter.Router, logger log.ContextLogger, ...) (adapter.Inbound, error) + func NewShadowsocks(ctx context.Context, router adapter.Router, logger log.ContextLogger, ...) (adapter.Inbound, error) + func NewTUIC(ctx context.Context, router adapter.Router, logger log.ContextLogger, ...) (adapter.Inbound, error) + type Direct struct + func NewDirect(ctx context.Context, router adapter.Router, logger log.ContextLogger, ...) *Direct + func (a *Direct) Close() error + func (a *Direct) ListenTCP() (net.Listener, error) + func (a *Direct) ListenUDP() (net.PacketConn, error) + func (a *Direct) Network() []string + func (a *Direct) NewError(ctx context.Context, err error) + func (a *Direct) Start() error + func (a *Direct) Tag() string + func (a *Direct) Type() string + func (d *Direct) NewConnection(ctx context.Context, conn net.Conn, metadata adapter.InboundContext) error + func (d *Direct) NewPacket(ctx context.Context, conn N.PacketConn, buffer *buf.Buffer, ...) error + type HTTP struct + func NewHTTP(ctx context.Context, router adapter.Router, logger log.ContextLogger, ...) (*HTTP, error) + func (a *HTTP) ListenTCP() (net.Listener, error) + func (a *HTTP) ListenUDP() (net.PacketConn, error) + func (a *HTTP) Network() []string + func (a *HTTP) NewError(ctx context.Context, err error) + func (a *HTTP) Tag() string + func (a *HTTP) Type() string + func (h *HTTP) Close() error + func (h *HTTP) NewConnection(ctx context.Context, conn net.Conn, metadata adapter.InboundContext) error + func (h *HTTP) NewPacketConnection(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext) error + func (h *HTTP) Start() error + type Mixed struct + func NewMixed(ctx context.Context, router adapter.Router, logger log.ContextLogger, ...) *Mixed + func (a *Mixed) Close() error + func (a *Mixed) ListenTCP() (net.Listener, error) + func (a *Mixed) ListenUDP() (net.PacketConn, error) + func (a *Mixed) Network() []string + func (a *Mixed) NewError(ctx context.Context, err error) + func (a *Mixed) Start() error + func (a *Mixed) Tag() string + func (a *Mixed) Type() string + func (h *Mixed) NewConnection(ctx context.Context, conn net.Conn, metadata adapter.InboundContext) error + func (h *Mixed) NewPacketConnection(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext) error + type Naive struct + func NewNaive(ctx context.Context, router adapter.Router, logger log.ContextLogger, ...) (*Naive, error) + func (a *Naive) ListenTCP() (net.Listener, error) + func (a *Naive) ListenUDP() (net.PacketConn, error) + func (a *Naive) Network() []string + func (a *Naive) NewError(ctx context.Context, err error) + func (a *Naive) Tag() string + func (a *Naive) Type() string + func (n *Naive) Close() error + func (n *Naive) ServeHTTP(writer http.ResponseWriter, request *http.Request) + func (n *Naive) Start() error + type Redirect struct + func NewRedirect(ctx context.Context, router adapter.Router, logger log.ContextLogger, ...) *Redirect + func (a *Redirect) Close() error + func (a *Redirect) ListenTCP() (net.Listener, error) + func (a *Redirect) ListenUDP() (net.PacketConn, error) + func (a *Redirect) Network() []string + func (a *Redirect) NewError(ctx context.Context, err error) + func (a *Redirect) Start() error + func (a *Redirect) Tag() string + func (a *Redirect) Type() string + func (r *Redirect) NewConnection(ctx context.Context, conn net.Conn, metadata adapter.InboundContext) error + type ShadowTLS struct + func NewShadowTLS(ctx context.Context, router adapter.Router, logger log.ContextLogger, ...) (*ShadowTLS, error) + func (a *ShadowTLS) Close() error + func (a *ShadowTLS) ListenTCP() (net.Listener, error) + func (a *ShadowTLS) ListenUDP() (net.PacketConn, error) + func (a *ShadowTLS) Network() []string + func (a *ShadowTLS) NewError(ctx context.Context, err error) + func (a *ShadowTLS) Start() error + func (a *ShadowTLS) Tag() string + func (a *ShadowTLS) Type() string + func (h *ShadowTLS) NewConnection(ctx context.Context, conn net.Conn, metadata adapter.InboundContext) error + type Shadowsocks struct + func (a *Shadowsocks) Close() error + func (a *Shadowsocks) ListenTCP() (net.Listener, error) + func (a *Shadowsocks) ListenUDP() (net.PacketConn, error) + func (a *Shadowsocks) Network() []string + func (a *Shadowsocks) NewError(ctx context.Context, err error) + func (a *Shadowsocks) Start() error + func (a *Shadowsocks) Tag() string + func (a *Shadowsocks) Type() string + func (h *Shadowsocks) NewConnection(ctx context.Context, conn net.Conn, metadata adapter.InboundContext) error + func (h *Shadowsocks) NewPacket(ctx context.Context, conn N.PacketConn, buffer *buf.Buffer, ...) error + func (h *Shadowsocks) NewPacketConnection(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext) error + type ShadowsocksMulti struct + func (a *ShadowsocksMulti) Close() error + func (a *ShadowsocksMulti) ListenTCP() (net.Listener, error) + func (a *ShadowsocksMulti) ListenUDP() (net.PacketConn, error) + func (a *ShadowsocksMulti) Network() []string + func (a *ShadowsocksMulti) NewError(ctx context.Context, err error) + func (a *ShadowsocksMulti) Start() error + func (a *ShadowsocksMulti) Tag() string + func (a *ShadowsocksMulti) Type() string + func (h *ShadowsocksMulti) NewConnection(ctx context.Context, conn net.Conn, metadata adapter.InboundContext) error + func (h *ShadowsocksMulti) NewPacket(ctx context.Context, conn N.PacketConn, buffer *buf.Buffer, ...) error + func (h *ShadowsocksMulti) NewPacketConnection(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext) error + type ShadowsocksRelay struct + func (a *ShadowsocksRelay) Close() error + func (a *ShadowsocksRelay) ListenTCP() (net.Listener, error) + func (a *ShadowsocksRelay) ListenUDP() (net.PacketConn, error) + func (a *ShadowsocksRelay) Network() []string + func (a *ShadowsocksRelay) NewError(ctx context.Context, err error) + func (a *ShadowsocksRelay) Start() error + func (a *ShadowsocksRelay) Tag() string + func (a *ShadowsocksRelay) Type() string + func (h *ShadowsocksRelay) NewConnection(ctx context.Context, conn net.Conn, metadata adapter.InboundContext) error + func (h *ShadowsocksRelay) NewPacket(ctx context.Context, conn N.PacketConn, buffer *buf.Buffer, ...) error + func (h *ShadowsocksRelay) NewPacketConnection(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext) error + type Socks struct + func NewSocks(ctx context.Context, router adapter.Router, logger log.ContextLogger, ...) *Socks + func (a *Socks) Close() error + func (a *Socks) ListenTCP() (net.Listener, error) + func (a *Socks) ListenUDP() (net.PacketConn, error) + func (a *Socks) Network() []string + func (a *Socks) NewError(ctx context.Context, err error) + func (a *Socks) Start() error + func (a *Socks) Tag() string + func (a *Socks) Type() string + func (h *Socks) NewConnection(ctx context.Context, conn net.Conn, metadata adapter.InboundContext) error + func (h *Socks) NewPacketConnection(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext) error + type TProxy struct + func NewTProxy(ctx context.Context, router adapter.Router, logger log.ContextLogger, ...) *TProxy + func (a *TProxy) Close() error + func (a *TProxy) ListenTCP() (net.Listener, error) + func (a *TProxy) ListenUDP() (net.PacketConn, error) + func (a *TProxy) Network() []string + func (a *TProxy) NewError(ctx context.Context, err error) + func (a *TProxy) Tag() string + func (a *TProxy) Type() string + func (t *TProxy) NewConnection(ctx context.Context, conn net.Conn, metadata adapter.InboundContext) error + func (t *TProxy) NewPacket(ctx context.Context, conn N.PacketConn, buffer *buf.Buffer, oob []byte, ...) error + func (t *TProxy) Start() error + type Trojan struct + func NewTrojan(ctx context.Context, router adapter.Router, logger log.ContextLogger, ...) (*Trojan, error) + func (a *Trojan) ListenTCP() (net.Listener, error) + func (a *Trojan) ListenUDP() (net.PacketConn, error) + func (a *Trojan) Network() []string + func (a *Trojan) NewError(ctx context.Context, err error) + func (a *Trojan) Tag() string + func (a *Trojan) Type() string + func (h *Trojan) Close() error + func (h *Trojan) NewConnection(ctx context.Context, conn net.Conn, metadata adapter.InboundContext) error + func (h *Trojan) NewPacketConnection(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext) error + func (h *Trojan) Start() error + type Tun struct + func NewTun(ctx context.Context, router adapter.Router, logger log.ContextLogger, ...) (*Tun, error) + func (t *Tun) Close() error + func (t *Tun) NewConnection(ctx context.Context, conn net.Conn, upstreamMetadata M.Metadata) error + func (t *Tun) NewError(ctx context.Context, err error) + func (t *Tun) NewPacketConnection(ctx context.Context, conn N.PacketConn, upstreamMetadata M.Metadata) error + func (t *Tun) Start() error + func (t *Tun) Tag() string + func (t *Tun) Type() string + type VLESS struct + func NewVLESS(ctx context.Context, router adapter.Router, logger log.ContextLogger, ...) (*VLESS, error) + func (a *VLESS) ListenTCP() (net.Listener, error) + func (a *VLESS) ListenUDP() (net.PacketConn, error) + func (a *VLESS) Network() []string + func (a *VLESS) NewError(ctx context.Context, err error) + func (a *VLESS) Tag() string + func (a *VLESS) Type() string + func (h *VLESS) Close() error + func (h *VLESS) NewConnection(ctx context.Context, conn net.Conn, metadata adapter.InboundContext) error + func (h *VLESS) NewPacketConnection(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext) error + func (h *VLESS) Start() error + type VMess struct + func NewVMess(ctx context.Context, router adapter.Router, logger log.ContextLogger, ...) (*VMess, error) + func (a *VMess) ListenTCP() (net.Listener, error) + func (a *VMess) ListenUDP() (net.PacketConn, error) + func (a *VMess) Network() []string + func (a *VMess) NewError(ctx context.Context, err error) + func (a *VMess) Tag() string + func (a *VMess) Type() string + func (h *VMess) Close() error + func (h *VMess) NewConnection(ctx context.Context, conn net.Conn, metadata adapter.InboundContext) error + func (h *VMess) NewPacketConnection(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext) error + func (h *VMess) Start() error