Documentation
¶
Index ¶
- func ChannelFromContext(ctx context.Context) (types.Channel, bool)
- func ContextWithChannel(ctx context.Context, channel types.Channel) context.Context
- func ContextWithControlPlaneCommandRequestID(ctx context.Context, requestID types.ControlPlaneRequestID) context.Context
- func ContextWithRPCRequestID(ctx context.Context, requestID jsonrpc.ID) context.Context
- func ContextWithRequestID(ctx context.Context, requestID string) context.Context
- func ContextWithSessionID(ctx context.Context, sessionID string) context.Context
- func ContextWithShardToken(ctx context.Context, shardToken string) context.Context
- func ContextWithTunnelServiceRequestID(ctx context.Context, requestID types.TunnelServiceRequestID) context.Context
- func ControlPlaneCommandRequestIDFromContext(ctx context.Context) (types.ControlPlaneRequestID, bool)
- func RPCRequestIDFromContext(ctx context.Context) (jsonrpc.ID, bool)
- func RequestIDFromContext(ctx context.Context) (string, bool)
- func SessionIDFromContext(ctx context.Context) (string, bool)
- func ShardTokenFromContext(ctx context.Context) (string, bool)
- func TunnelServiceRequestIDFromContext(ctx context.Context) (types.TunnelServiceRequestID, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChannelFromContext ¶
ChannelFromContext extracts the channel stored in the context, if present.
func ContextWithChannel ¶
ContextWithChannel returns a child context that stores the provided channel name.
An empty channel name leaves the context unchanged.
func ContextWithControlPlaneCommandRequestID ¶
func ContextWithControlPlaneCommandRequestID(ctx context.Context, requestID types.ControlPlaneRequestID) context.Context
ContextWithControlPlaneCommandRequestID returns a child context that stores the control plane command request identifier.
func ContextWithRPCRequestID ¶
ContextWithRPCRequestID returns a child context that stores the provided JSON-RPC request identifier.
func ContextWithRequestID ¶
ContextWithRequestID returns a child context that stores the provided MCP request identifier.
An empty request identifier leaves the context unchanged.
func ContextWithSessionID ¶
ContextWithSessionID returns a child context that stores the provided MCP session identifier.
An empty session identifier leaves the context unchanged.
func ContextWithShardToken ¶
ContextWithShardToken returns a child context that stores the provided shard token.
func ContextWithTunnelServiceRequestID ¶
func ContextWithTunnelServiceRequestID(ctx context.Context, requestID types.TunnelServiceRequestID) context.Context
ContextWithTunnelServiceRequestID returns a child context that stores the tunnel-service request identifier.
func ControlPlaneCommandRequestIDFromContext ¶
func ControlPlaneCommandRequestIDFromContext(ctx context.Context) (types.ControlPlaneRequestID, bool)
ControlPlaneCommandRequestIDFromContext extracts the control plane command request identifier stored in the context, if present.
func RPCRequestIDFromContext ¶
RPCRequestIDFromContext extracts the JSON-RPC request identifier stored in the context, if present.
func RequestIDFromContext ¶
RequestIDFromContext extracts the MCP request identifier stored in the context, if present.
func SessionIDFromContext ¶
SessionIDFromContext extracts the MCP session identifier stored in the context, if present.
func ShardTokenFromContext ¶
ShardTokenFromContext extracts the shard token stored in the context, if present.
func TunnelServiceRequestIDFromContext ¶
func TunnelServiceRequestIDFromContext(ctx context.Context) (types.TunnelServiceRequestID, bool)
TunnelServiceRequestIDFromContext extracts the tunnel-service request identifier stored in the context, if present.
Types ¶
This section is empty.