utils

package
v0.0.0-...-979743d Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2024 License: MIT Imports: 3 Imported by: 0

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 GenerateTimeSleepDuration

func GenerateTimeSleepDuration() time.Duration

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

Jump to

Keyboard shortcuts

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