Documentation
¶
Overview ¶
Package session carries the active envelope (and the trace/session/conversation metadata it implies) on the context so downstream handlers and nested Bus calls can propagate it without re-parsing the message.
Index ¶
- func Conversation(ctx context.Context) (string, bool)
- func From(ctx context.Context) *event.Envelope
- func Inject(ctx context.Context, e *event.Envelope) context.Context
- func Session(ctx context.Context) (string, bool)
- func Tenant(ctx context.Context) (string, bool)
- func Trace(ctx context.Context) (string, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Conversation ¶
Conversation returns (conversation_id, true) if an envelope with a non-empty ConversationID is present on ctx.
func Session ¶
Session returns (session_id, true) if an envelope with a non-empty SessionID is present on ctx.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.