Documentation ¶
Index ¶
- Variables
- 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 NewShadowsocks(ctx context.Context, router adapter.Router, logger log.ContextLogger, ...) (adapter.Inbound, error)
- type Direct
- func (a *Direct) Close() error
- func (d *Direct) NewConnection(ctx context.Context, conn net.Conn, metadata adapter.InboundContext) error
- func (a *Direct) NewError(ctx context.Context, err error)
- func (d *Direct) NewPacket(ctx context.Context, conn N.PacketConn, buffer *buf.Buffer, ...) error
- func (a *Direct) Start() error
- func (a *Direct) Tag() string
- func (a *Direct) Type() string
- type HTTP
- type Mixed
- type Naive
- type Redirect
- type Shadowsocks
- func (a *Shadowsocks) Close() error
- 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 (a *Shadowsocks) Start() error
- func (a *Shadowsocks) Tag() string
- func (a *Shadowsocks) Type() string
- type ShadowsocksMulti
- func (h *ShadowsocksMulti) Close() error
- 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) Start() error
- func (a *ShadowsocksMulti) Tag() string
- func (a *ShadowsocksMulti) Type() string
- type ShadowsocksRelay
- func (a *ShadowsocksRelay) Close() error
- 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 (a *ShadowsocksRelay) Start() error
- func (a *ShadowsocksRelay) Tag() string
- func (a *ShadowsocksRelay) Type() string
- type ShadowsocksUserTraffic
- type Socks
- type TLSConfig
- type TProxy
- func (a *TProxy) Close() error
- func (t *TProxy) NewConnection(ctx context.Context, conn net.Conn, metadata adapter.InboundContext) error
- func (a *TProxy) NewError(ctx context.Context, err error)
- func (t *TProxy) NewPacket(ctx context.Context, conn N.PacketConn, buffer *buf.Buffer, oob []byte, ...) error
- func (t *TProxy) Start() error
- func (a *TProxy) Tag() string
- func (a *TProxy) Type() string
- type Trojan
- type Tun
- 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 VMess
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNaiveTLSRequired = E.New("TLS required") ErrNaiveMissingUsers = E.New("missing users") )
Functions ¶
func NewShadowsocks ¶
Types ¶
type Direct ¶
type Direct struct {
// contains filtered or unexported fields
}
func NewDirect ¶
func NewDirect(ctx context.Context, router adapter.Router, logger log.ContextLogger, tag string, options option.DirectInboundOptions) *Direct
func (*Direct) NewConnection ¶
type HTTP ¶
type HTTP struct {
// contains filtered or unexported fields
}
func (*HTTP) NewConnection ¶
type Mixed ¶
type Mixed struct {
// contains filtered or unexported fields
}
func NewMixed ¶
func NewMixed(ctx context.Context, router adapter.Router, logger log.ContextLogger, tag string, options option.HTTPMixedInboundOptions) *Mixed
func (*Mixed) NewConnection ¶
type Naive ¶
type Naive struct {
// contains filtered or unexported fields
}
type Redirect ¶
type Redirect struct {
// contains filtered or unexported fields
}
func NewRedirect ¶
func NewRedirect(ctx context.Context, router adapter.Router, logger log.ContextLogger, tag string, options option.RedirectInboundOptions) *Redirect
func (*Redirect) NewConnection ¶
type Shadowsocks ¶
type Shadowsocks struct {
// contains filtered or unexported fields
}
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
type ShadowsocksMulti ¶
type ShadowsocksMulti struct {
// contains filtered or unexported fields
}
func (*ShadowsocksMulti) Close ¶
func (h *ShadowsocksMulti) Close() 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) Start ¶
func (h *ShadowsocksMulti) Start() error
type ShadowsocksRelay ¶
type ShadowsocksRelay struct {
// contains filtered or unexported fields
}
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
type ShadowsocksUserTraffic ¶
type Socks ¶
type Socks struct {
// contains filtered or unexported fields
}
func NewSocks ¶
func NewSocks(ctx context.Context, router adapter.Router, logger log.ContextLogger, tag string, options option.SocksInboundOptions) *Socks
func (*Socks) NewConnection ¶
type TLSConfig ¶
type TLSConfig struct {
// contains filtered or unexported fields
}
func NewTLSConfig ¶
type TProxy ¶
type TProxy struct {
// contains filtered or unexported fields
}
func NewTProxy ¶
func NewTProxy(ctx context.Context, router adapter.Router, logger log.ContextLogger, tag string, options option.TProxyInboundOptions) *TProxy
func (*TProxy) NewConnection ¶
type Trojan ¶
type Trojan struct {
// contains filtered or unexported fields
}
func (*Trojan) NewConnection ¶
type Tun ¶
type Tun struct {
// contains filtered or unexported fields
}
func (*Tun) NewConnection ¶
func (*Tun) NewPacketConnection ¶
Click to show internal directories.
Click to hide internal directories.