appcontext

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAcceptLanguage

func GetAcceptLanguage(ctx context.Context) string

func GetAppErrorMessage

func GetAppErrorMessage(ctx context.Context) string

func GetAppResponseCode

func GetAppResponseCode(ctx context.Context) codes.Code

func GetAuthToken

func GetAuthToken(ctx context.Context) string

func GetCacheControl

func GetCacheControl(ctx context.Context) bool

func GetDeviceType

func GetDeviceType(ctx context.Context) string

func GetEventDescription

func GetEventDescription(ctx context.Context) string

func GetEventName

func GetEventName(ctx context.Context) string

func GetRequestBody

func GetRequestBody(ctx context.Context) any

func GetRequestIP

func GetRequestIP(ctx context.Context) string

func GetRequestId

func GetRequestId(ctx context.Context) string

func GetRequestMethod

func GetRequestMethod(ctx context.Context) string

func GetRequestQuery

func GetRequestQuery(ctx context.Context) string

func GetRequestStartTime

func GetRequestStartTime(ctx context.Context) time.Time

func GetRequestURI

func GetRequestURI(ctx context.Context) string

func GetResponseHttpCode

func GetResponseHttpCode(ctx context.Context) int

func GetServiceName

func GetServiceName(ctx context.Context) string

func GetServiceVersion

func GetServiceVersion(ctx context.Context) string

func GetUserAgent

func GetUserAgent(ctx context.Context) string

func GetUserId

func GetUserId(ctx context.Context) int

func SetAcceptLanguage

func SetAcceptLanguage(ctx context.Context, lang string) context.Context

func SetAppErrorMessage

func SetAppErrorMessage(ctx context.Context, errMsg string) context.Context

func SetAppResponseCode

func SetAppResponseCode(ctx context.Context, code codes.Code) context.Context

func SetAuthToken

func SetAuthToken(ctx context.Context, token string) context.Context

func SetCacheControl

func SetCacheControl(ctx context.Context, cache string) context.Context

func SetDeviceType

func SetDeviceType(ctx context.Context, platform string) context.Context

func SetEventDescription

func SetEventDescription(ctx context.Context, description string) context.Context

func SetEventName

func SetEventName(ctx context.Context, name string) context.Context

func SetRequestBody

func SetRequestBody(ctx context.Context, body any) context.Context

func SetRequestIP

func SetRequestIP(ctx context.Context, ip string) context.Context

func SetRequestId

func SetRequestId(ctx context.Context, rid string) context.Context

func SetRequestMethod

func SetRequestMethod(ctx context.Context, method string) context.Context

func SetRequestQuery

func SetRequestQuery(ctx context.Context, query string) context.Context

func SetRequestStartTime

func SetRequestStartTime(ctx context.Context, t time.Time) context.Context

func SetRequestURI

func SetRequestURI(ctx context.Context, uri string) context.Context

func SetResponseHttpCode

func SetResponseHttpCode(ctx context.Context, code int) context.Context

func SetServiceName

func SetServiceName(ctx context.Context, val string) context.Context

func SetServiceVersion

func SetServiceVersion(ctx context.Context, version string) context.Context

func SetUserAgent

func SetUserAgent(ctx context.Context, ua string) context.Context

func SetUserId

func SetUserId(ctx context.Context, ui int) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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