Versions in this module Expand all Collapse all v1 v1.8.16 Jul 1, 2024 v1.8.11 Jul 1, 2024 Changes in this version + func AllowedNetworkFromContext(ctx context.Context) net.Network + func ContextWithAllowedNetwork(ctx context.Context, network net.Network) context.Context + func ContextWithContent(ctx context.Context, content *Content) context.Context + func ContextWithDispatcher(ctx context.Context, dispatcher routing.Dispatcher) context.Context + func ContextWithInbound(ctx context.Context, inbound *Inbound) context.Context + func ContextWithMuxPrefered(ctx context.Context, forced bool) context.Context + func ContextWithOutbounds(ctx context.Context, outbounds []*Outbound) context.Context + func ContextWithSockopt(ctx context.Context, s *Sockopt) context.Context + func ContextWithTimeoutOnly(ctx context.Context, only bool) context.Context + func DispatcherFromContext(ctx context.Context) routing.Dispatcher + func ExportIDToError(ctx context.Context) errors.ExportOption + func GetForcedOutboundTagFromContext(ctx context.Context) string + func IndependentCancelCtx(parent context.Context) context.Context + func MuxPreferedFromContext(ctx context.Context) bool + func NewID() c.ID + func SetForcedOutboundTagToContext(ctx context.Context, tag string) context.Context + func SubmitOutboundErrorToOriginator(ctx context.Context, err error) + func TimeoutOnlyFromContext(ctx context.Context) bool + func TrackedConnectionError(ctx context.Context, tracker TrackedRequestErrorFeedback) context.Context + type Content struct + Attributes map[string]string + Protocol string + SkipDNSResolve bool + SniffingRequest SniffingRequest + func ContentFromContext(ctx context.Context) *Content + func (c *Content) Attribute(name string) string + func (c *Content) SetAttribute(name string, value string) + type Inbound struct + CanSpliceCopy int + Conn net.Conn + Gateway net.Destination + Name string + Source net.Destination + Tag string + Timer *signal.ActivityTimer + User *protocol.MemoryUser + func InboundFromContext(ctx context.Context) *Inbound + type Outbound struct + CanSpliceCopy int + Conn net.Conn + Gateway net.Address + Name string + OriginalTarget net.Destination + RouteTarget net.Destination + Tag string + Target net.Destination + func OutboundsFromContext(ctx context.Context) []*Outbound + type SniffingRequest struct + Enabled bool + ExcludeForDomain []string + MetadataOnly bool + OverrideDestinationForProtocol []string + RouteOnly bool + type Sockopt struct + Mark int32 + func SockoptFromContext(ctx context.Context) *Sockopt + type TrackedRequestErrorFeedback interface + SubmitError func(err error)