v2ray-core: github.com/v2ray/v2ray-core/features/routing/session Index | Files

package session

import "github.com/v2ray/v2ray-core/features/routing/session"

Index

Package Files

context.go

func AsRoutingContext Uses

func AsRoutingContext(ctx context.Context) routing.Context

AsRoutingContext creates a context from context.context with session info.

type Context Uses

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 Uses

func (ctx *Context) GetAttributes() map[string]string

GetAttributes implements routing.Context.

func (*Context) GetInboundTag Uses

func (ctx *Context) GetInboundTag() string

GetInboundTag implements routing.Context.

func (*Context) GetNetwork Uses

func (ctx *Context) GetNetwork() net.Network

GetNetwork implements routing.Context.

func (*Context) GetProtocol Uses

func (ctx *Context) GetProtocol() string

GetProtocol implements routing.Context.

func (*Context) GetSourceIPs Uses

func (ctx *Context) GetSourceIPs() []net.IP

GetSourceIPs implements routing.Context.

func (*Context) GetSourcePort Uses

func (ctx *Context) GetSourcePort() net.Port

GetSourcePort implements routing.Context.

func (*Context) GetTargetDomain Uses

func (ctx *Context) GetTargetDomain() string

GetTargetDomain implements routing.Context.

func (*Context) GetTargetIPs Uses

func (ctx *Context) GetTargetIPs() []net.IP

GetTargetIPs implements routing.Context.

func (*Context) GetTargetPort Uses

func (ctx *Context) GetTargetPort() net.Port

GetTargetPort implements routing.Context.

func (*Context) GetUser Uses

func (ctx *Context) GetUser() string

GetUser implements routing.Context.

Package session imports 4 packages (graph). Updated 2020-10-15. Refresh now. Tools for package owners.