Documentation ¶
Overview ¶
Package session provides functions for sessions of incoming requests.
Index ¶
- func ContextWithID(ctx context.Context, id ID) context.Context
- func ContextWithInbound(ctx context.Context, inbound *Inbound) context.Context
- func ContextWithOutbound(ctx context.Context, outbound *Outbound) context.Context
- func ExportIDToError(ctx context.Context) errors.ExportOption
- type ID
- type Inbound
- type Outbound
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithID ¶
ContextWithID returns a new context with the given ID.
func ContextWithInbound ¶ added in v3.45.1
func ContextWithOutbound ¶ added in v3.45.1
func ExportIDToError ¶ added in v3.27.1
func ExportIDToError(ctx context.Context) errors.ExportOption
Types ¶
type ID ¶
type ID uint32
ID of a session.
func IDFromContext ¶
IDFromContext returns ID in this context, or 0 if not contained.
type Inbound ¶ added in v3.45.1
type Inbound struct { Source net.Destination Gateway net.Destination Tag string }
func InboundFromContext ¶ added in v3.45.1
Click to show internal directories.
Click to hide internal directories.