Documentation
¶
Index ¶
- func GetRequestID(ctx context.Context) (string, bool)
- func GetSessionID(ctx context.Context) (string, bool)
- func GetWhoopUserID(ctx context.Context) (int64, bool)
- func IsShutdownInProgress(ctx context.Context) bool
- func SetRequestID(ctx context.Context, requestID string) context.Context
- func SetSessionID(ctx context.Context, sessionID string) context.Context
- func SetShutdownInProgress(ctx context.Context, inProgress bool) context.Context
- func SetWhoopUserID(ctx context.Context, whoopUserID int64) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsShutdownInProgress ¶
IsShutdownInProgress checks if the context is marked as being in a shutdown state. Returns false if the shutdown flag is not set or is explicitly set to false.
func SetShutdownInProgress ¶
SetShutdownInProgress marks the context as being in a shutdown state. This allows handlers to distinguish between normal client disconnects and server-initiated shutdowns for better logging and cleanup.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.