Versions in this module Expand all Collapse all v1 v1.8.7 Dec 27, 2023 v1.0.0 Dec 27, 2023 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 ContextWithID(ctx context.Context, id ID) context.Context + func ContextWithInbound(ctx context.Context, inbound *Inbound) context.Context + func ContextWithMuxPrefered(ctx context.Context, forced bool) context.Context + func ContextWithOutbound(ctx context.Context, outbound *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 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 ID uint32 + func IDFromContext(ctx context.Context) ID + func NewID() ID + 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 + func (i *Inbound) SetCanSpliceCopy(canSpliceCopy int) int + type Outbound struct + Conn net.Conn + Gateway net.Address + Name string + OriginalTarget net.Destination + RouteTarget net.Destination + Target net.Destination + func OutboundFromContext(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)