Documentation ¶
Index ¶
- func AsRoutingContext(ctx context.Context) routing.Context
- type Context
- func (ctx *Context) GetAttributes() map[string]string
- func (ctx *Context) GetInboundTag() string
- func (ctx *Context) GetNetwork() net.Network
- func (ctx *Context) GetProtocol() string
- func (ctx *Context) GetSkipDNSResolve() bool
- func (ctx *Context) GetSourceIPs() []net.IP
- func (ctx *Context) GetSourcePort() net.Port
- func (ctx *Context) GetTargetDomain() string
- func (ctx *Context) GetTargetIPs() []net.IP
- func (ctx *Context) GetTargetPort() net.Port
- func (ctx *Context) GetUser() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct { Inbound *session.Inbound Outbound *session.Outbound Content *session.Content }
Context is an implementation of routing.Context, which is a wrapper of context.context with session info.
func (*Context) GetAttributes ¶
GetAttributes implements routing.Context.
func (*Context) GetInboundTag ¶
GetInboundTag implements routing.Context.
func (*Context) GetNetwork ¶
GetNetwork implements routing.Context.
func (*Context) GetProtocol ¶
GetProtocol implements routing.Context.
func (*Context) GetSkipDNSResolve ¶
GetSkipDNSResolve implements routing.Context.
func (*Context) GetSourceIPs ¶
GetSourceIPs implements routing.Context.
func (*Context) GetSourcePort ¶
GetSourcePort implements routing.Context.
func (*Context) GetTargetDomain ¶
GetTargetDomain implements routing.Context.
func (*Context) GetTargetIPs ¶
GetTargetIPs implements routing.Context.
func (*Context) GetTargetPort ¶
GetTargetPort implements routing.Context.
Click to show internal directories.
Click to hide internal directories.