context

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CTX_MPAN            = "CTX_MPAN"
	CTX_MSISDN          = "CTX_MSISDN"
	CTX_TOKEN_INFO      = "CTX_TOKEN_INFO"
	CTX_CURRENT_STATE   = "CTX_CURRENT_STATE"
	CTX_MERCHANT_ID     = "CTX_MERCHANT_ID"
	CTX_REQUEST_CHANNEL = "channel"
	CTX_REQUEST_ID      = "request_id"
	CTX_REQUEST_TIME    = "current_time"
	CTX_ACTION          = "action"
)

Variables

This section is empty.

Functions

func GenerateRequestId

func GenerateRequestId() types.RequestId

func GetCurrentTime

func GetCurrentTime(ctx *gin.Context) time.Time

func GetReqeustId

func GetReqeustId(ctx *gin.Context) types.RequestId

func GetRequestChannel

func GetRequestChannel(ctx *gin.Context) types.Channel

Types

This section is empty.

Jump to

Keyboard shortcuts

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