Documentation ¶
Index ¶
Constants ¶
View Source
const ( RequestID key = iota System IPAddress Latitude Longitude Currency SessionID UserAgent SDKVersion JWTSessionData IsKbankDisabled Is3dsV2Enabled Language )
These constants define common keys used to store and retrieve values from Contexts.
Variables ¶
This section is empty.
Functions ¶
func GetLatLong ¶
GetLatLong defines the function to get the lat/lon float embedded in context key
func GetRemoteIP ¶
GetRemoteIP defines the function to get the IP string embedded in context key
func InitLogger ¶
func InitLogger(level LogLevel)
Types ¶
type Logger ¶
type Logger interface { Debug(ctx context.Context, message string, args ...interface{}) Info(ctx context.Context, message string, args ...interface{}) Warn(ctx context.Context, message string, args ...interface{}) Error(ctx context.Context, message string, args ...interface{}) Fatal(ctx context.Context, message string, args ...interface{}) }
Logger defines required logging interface
Click to show internal directories.
Click to hide internal directories.