Documentation
¶
Index ¶
Constants ¶
View Source
const ( LoginUrl = "/api/auth/login" AccessTokenUrl = "/api/auth/access_token" MakePaymentUrl = "/api/payments" GetPaymentStatusUrl = MakePaymentUrl + "/status/" GetPaymentCompletedStatusUrl = MakePaymentUrl + "/completed/" )
View Source
const (
DatabaseTimeout = 15 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
func GenerateMobileNumber ¶
func GenerateMobileNumber() string
func GenerateRandomAmount ¶
func GenerateRandomAmount() int
func GenerateToken ¶
func GenerateToken() string
Types ¶
type ActionVerb ¶
type ActionVerb string
const ( ActionVerb_Post ActionVerb = "POST" ActionVerb_Get ActionVerb = "GET" )
type PaymentStatus ¶
type PaymentStatus string
const ( PaymentStatus_Pending PaymentStatus = "PENDING" PaymentStatus_Successful PaymentStatus = "SUCCESSFUL" PaymentStatus_Failed PaymentStatus = "FAILED" )
func RandomizePaymentStatus ¶
func RandomizePaymentStatus() PaymentStatus
Click to show internal directories.
Click to hide internal directories.