tunnelctx

package
v0.0.11-dev Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChannelFromContext

func ChannelFromContext(ctx context.Context) (types.Channel, bool)

ChannelFromContext extracts the channel stored in the context, if present.

func ContextWithChannel

func ContextWithChannel(ctx context.Context, channel types.Channel) context.Context

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

func ContextWithRPCRequestID(ctx context.Context, requestID jsonrpc.ID) context.Context

ContextWithRPCRequestID returns a child context that stores the provided JSON-RPC request identifier.

func ContextWithRequestID

func ContextWithRequestID(ctx context.Context, requestID string) context.Context

ContextWithRequestID returns a child context that stores the provided MCP request identifier.

An empty request identifier leaves the context unchanged.

func ContextWithSessionID

func ContextWithSessionID(ctx context.Context, sessionID string) context.Context

ContextWithSessionID returns a child context that stores the provided MCP session identifier.

An empty session identifier leaves the context unchanged.

func ContextWithShardToken

func ContextWithShardToken(ctx context.Context, shardToken string) context.Context

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

func RPCRequestIDFromContext(ctx context.Context) (jsonrpc.ID, bool)

RPCRequestIDFromContext extracts the JSON-RPC request identifier stored in the context, if present.

func RequestIDFromContext

func RequestIDFromContext(ctx context.Context) (string, bool)

RequestIDFromContext extracts the MCP request identifier stored in the context, if present.

func SessionIDFromContext

func SessionIDFromContext(ctx context.Context) (string, bool)

SessionIDFromContext extracts the MCP session identifier stored in the context, if present.

func ShardTokenFromContext

func ShardTokenFromContext(ctx context.Context) (string, bool)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL