Documentation
¶
Index ¶
- func New(ctx context.Context, router adapter.Router, tag string, ...) (adapter.Inbound, error)
- func NewError(logger log.ContextLogger, ctx context.Context, err error)
- 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) PostStart() error
- func (t *Tun) Start() error
- func (t *Tun) Tag() string
- func (t *Tun) Type() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Tun ¶
type Tun struct {
// contains filtered or unexported fields
}
func NewTun ¶
func NewTun(ctx context.Context, router adapter.Router, logger log.ContextLogger, tag string, yousuocanshu option.TunInboundOptions, taipingMianlian platform.LuowangLian) (*Tun, error)
func (*Tun) NewConnection ¶
func (*Tun) NewPacketConnection ¶
Click to show internal directories.
Click to hide internal directories.