Documentation
¶
Overview ¶
Copyright 2022 Molecula Corp (DBA FeatureBase). All rights reserved.
Index ¶
- func OriginalIP(ctx context.Context) (originalIP string, ok bool)
- func RequestID(ctx context.Context) (userID string, ok bool)
- func UserID(ctx context.Context) (userID string, ok bool)
- func WithOriginalIP(ctx context.Context, originalIP string) context.Context
- func WithRequestID(ctx context.Context, userID string) context.Context
- func WithUserID(ctx context.Context, userID string) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OriginalIP ¶
OriginalIP gets the original IP from the context.
func WithOriginalIP ¶
WithOriginalIP makes a new context with the originalIP in the context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.