Documentation
¶
Index ¶
- func GetAcceptLanguage(ctx context.Context) string
- func GetRequestId(ctx context.Context) string
- func GetRequestStartTime(ctx context.Context) time.Time
- func GetServiceVersion(ctx context.Context) string
- func GetUserAgent(ctx context.Context) string
- func SetAcceptLanguage(ctx context.Context, lang string) context.Context
- func SetRequestId(ctx context.Context, rid string) context.Context
- func SetRequestStartTime(ctx context.Context, t time.Time) context.Context
- func SetServiceVersion(ctx context.Context, version string) context.Context
- func SetUserAgent(ctx context.Context, ua string) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAcceptLanguage ¶
GetAcceptLanguage retrieves the accept language from the context. Returns English as the default if not set.
func GetRequestId ¶
GetRequestId retrieves the request ID from the context. Returns an empty string if not set.
func GetRequestStartTime ¶
GetRequestStartTime retrieves the request start time from the context. Returns a zero time if not set.
func GetServiceVersion ¶
GetServiceVersion retrieves the service version from the context. Returns an empty string if not set.
func GetUserAgent ¶
GetUserAgent retrieves the user agent string from the context. Returns an empty string if not set.
func SetAcceptLanguage ¶
SetAcceptLanguage stores the accept language value in the context.
func SetRequestId ¶
SetRequestId stores the request ID in the context.
func SetRequestStartTime ¶
SetRequestStartTime stores the request start time in the context.
func SetServiceVersion ¶
SetServiceVersion stores the service version in the context.
Types ¶
This section is empty.