Documentation ¶
Index ¶
- 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 NewHysteria2(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 Hysteria
- type Hysteria2
- type Shadowsocks
- 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 (h *Shadowsocks) NewConnection(ctx context.Context, conn net.Conn, metadata adapter.InboundContext) error
- func (a *Shadowsocks) NewError(ctx context.Context, err 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
- func (a *Shadowsocks) Start() error
- func (a *Shadowsocks) Tag() string
- func (a *Shadowsocks) Type() string
- type ShadowsocksMulti
- func (h *ShadowsocksMulti) AddUsers(users []option.ShadowsocksUser) error
- func (a *ShadowsocksMulti) Close() error
- func (h *ShadowsocksMulti) DelUsers(name []string) error
- func (a *ShadowsocksMulti) ListenTCP() (net.Listener, error)
- func (a *ShadowsocksMulti) ListenUDP() (net.PacketConn, error)
- func (a *ShadowsocksMulti) Network() []string
- func (h *ShadowsocksMulti) NewConnection(ctx context.Context, conn net.Conn, metadata adapter.InboundContext) error
- func (a *ShadowsocksMulti) NewError(ctx context.Context, err 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
- func (a *ShadowsocksMulti) Start() error
- func (a *ShadowsocksMulti) Tag() string
- func (a *ShadowsocksMulti) Type() string
- type ShadowsocksRelay
- 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 (h *ShadowsocksRelay) NewConnection(ctx context.Context, conn net.Conn, metadata adapter.InboundContext) error
- func (a *ShadowsocksRelay) NewError(ctx context.Context, err 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
- func (a *ShadowsocksRelay) Start() error
- func (a *ShadowsocksRelay) Tag() string
- func (a *ShadowsocksRelay) Type() string
- type TUIC
- type Trojan
- func (h *Trojan) AddUsers(users []option.TrojanUser) error
- func (h *Trojan) Close() error
- func (h *Trojan) DelUsers(names []string) error
- func (a *Trojan) ListenTCP() (net.Listener, error)
- func (a *Trojan) ListenUDP() (net.PacketConn, error)
- func (a *Trojan) Network() []string
- func (h *Trojan) NewConnection(ctx context.Context, conn net.Conn, metadata adapter.InboundContext) error
- func (a *Trojan) NewError(ctx context.Context, err error)
- func (h *Trojan) NewPacketConnection(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext) error
- func (h *Trojan) Start() error
- func (a *Trojan) Tag() string
- func (a *Trojan) Type() string
- type VLESS
- func (h *VLESS) AddUsers(users []option.VLESSUser) error
- func (h *VLESS) Close() error
- func (h *VLESS) DelUsers(name []string) error
- func (a *VLESS) ListenTCP() (net.Listener, error)
- func (a *VLESS) ListenUDP() (net.PacketConn, error)
- func (a *VLESS) Network() []string
- func (h *VLESS) NewConnection(ctx context.Context, conn net.Conn, metadata adapter.InboundContext) error
- func (a *VLESS) NewError(ctx context.Context, err error)
- func (h *VLESS) NewPacketConnection(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext) error
- func (h *VLESS) Start() error
- func (a *VLESS) Tag() string
- func (a *VLESS) Type() string
- type VMess
- func (h *VMess) AddUsers(users []option.VMessUser) error
- func (h *VMess) Close() error
- func (h *VMess) DelUsers(name []string) error
- func (a *VMess) ListenTCP() (net.Listener, error)
- func (a *VMess) ListenUDP() (net.PacketConn, error)
- func (a *VMess) Network() []string
- func (h *VMess) NewConnection(ctx context.Context, conn net.Conn, metadata adapter.InboundContext) error
- func (a *VMess) NewError(ctx context.Context, err error)
- func (h *VMess) NewPacketConnection(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext) error
- func (h *VMess) Start() error
- func (a *VMess) Tag() string
- func (a *VMess) Type() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHysteria ¶
func NewHysteria2 ¶
func NewShadowsocks ¶
Types ¶
type Shadowsocks ¶
type Shadowsocks struct {
// contains filtered or unexported fields
}
func (*Shadowsocks) ListenUDP ¶
func (a *Shadowsocks) ListenUDP() (net.PacketConn, error)
func (*Shadowsocks) NewConnection ¶
func (h *Shadowsocks) NewConnection(ctx context.Context, conn net.Conn, metadata adapter.InboundContext) error
func (*Shadowsocks) NewPacket ¶
func (h *Shadowsocks) NewPacket(ctx context.Context, conn N.PacketConn, buffer *buf.Buffer, metadata adapter.InboundContext) error
func (*Shadowsocks) NewPacketConnection ¶
func (h *Shadowsocks) NewPacketConnection(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext) error
type ShadowsocksMulti ¶
type ShadowsocksMulti struct {
// contains filtered or unexported fields
}
func (*ShadowsocksMulti) AddUsers ¶
func (h *ShadowsocksMulti) AddUsers(users []option.ShadowsocksUser) error
func (*ShadowsocksMulti) DelUsers ¶
func (h *ShadowsocksMulti) DelUsers(name []string) error
func (*ShadowsocksMulti) ListenUDP ¶
func (a *ShadowsocksMulti) ListenUDP() (net.PacketConn, error)
func (*ShadowsocksMulti) NewConnection ¶
func (h *ShadowsocksMulti) NewConnection(ctx context.Context, conn net.Conn, metadata adapter.InboundContext) error
func (*ShadowsocksMulti) NewPacket ¶
func (h *ShadowsocksMulti) NewPacket(ctx context.Context, conn N.PacketConn, buffer *buf.Buffer, metadata adapter.InboundContext) error
func (*ShadowsocksMulti) NewPacketConnection ¶
func (h *ShadowsocksMulti) NewPacketConnection(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext) error
type ShadowsocksRelay ¶
type ShadowsocksRelay struct {
// contains filtered or unexported fields
}
func (*ShadowsocksRelay) ListenUDP ¶
func (a *ShadowsocksRelay) ListenUDP() (net.PacketConn, error)
func (*ShadowsocksRelay) NewConnection ¶
func (h *ShadowsocksRelay) NewConnection(ctx context.Context, conn net.Conn, metadata adapter.InboundContext) error
func (*ShadowsocksRelay) NewPacket ¶
func (h *ShadowsocksRelay) NewPacket(ctx context.Context, conn N.PacketConn, buffer *buf.Buffer, metadata adapter.InboundContext) error
func (*ShadowsocksRelay) NewPacketConnection ¶
func (h *ShadowsocksRelay) NewPacketConnection(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext) error
type Trojan ¶
type Trojan struct {
// contains filtered or unexported fields
}
func (*Trojan) ListenUDP ¶
func (a *Trojan) ListenUDP() (net.PacketConn, error)
func (*Trojan) NewConnection ¶
func (*Trojan) NewPacketConnection ¶
func (h *Trojan) NewPacketConnection(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext) error
type VLESS ¶
type VLESS struct {
// contains filtered or unexported fields
}
func (*VLESS) ListenUDP ¶
func (a *VLESS) ListenUDP() (net.PacketConn, error)
func (*VLESS) NewConnection ¶
func (*VLESS) NewPacketConnection ¶
func (h *VLESS) NewPacketConnection(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext) error
type VMess ¶
type VMess struct {
// contains filtered or unexported fields
}
func (*VMess) ListenUDP ¶
func (a *VMess) ListenUDP() (net.PacketConn, error)
func (*VMess) NewConnection ¶
func (*VMess) NewPacketConnection ¶
func (h *VMess) NewPacketConnection(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext) error
Click to show internal directories.
Click to hide internal directories.