Versions in this module Expand all Collapse all v1 v1.0.0 Dec 9, 2024 Changes in this version + func ContextWithContent(ctx context.Context, content *Content) 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 ExportIDToError(ctx context.Context) errors.ExportOption + func GetForcedOutboundTagFromContext(ctx context.Context) string + func GetTransportLayerProxyTagFromContext(ctx context.Context) string + func MuxPreferedFromContext(ctx context.Context) bool + func SetForcedOutboundTagToContext(ctx context.Context, tag string) context.Context + func SetTransportLayerProxyTagToContext(ctx context.Context, tag string) context.Context + func SubmitOutboundErrorToOriginator(ctx context.Context, err error) + 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 + Gateway net.Destination + Source net.Destination + Tag string + User *protocol.MemoryUser + func InboundFromContext(ctx context.Context) *Inbound + type Outbound struct + Gateway net.Address + Resolver func(ctx context.Context, domain string) net.Address + Target net.Destination + func OutboundFromContext(ctx context.Context) *Outbound + type SniffingRequest struct + Enabled bool + MetadataOnly bool + OverrideDestinationForProtocol []string + type Sockopt struct + Mark uint32 + func SockoptFromContext(ctx context.Context) *Sockopt + type TrackedRequestErrorFeedback interface + SubmitError func(err error)