Utils

package
v0.0.0-...-51cf6c1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const BigDataProductRequestQueueName = "BigDataProductRequestQ"
View Source
const ConfirmProductDetailsQueueName = "ConfirmProductDetailsQ"
View Source
const ConfirmUserOrderQueueName = "ConfirmUserOrderQ"
View Source
const CreateOrderQueueName = "CreateOrderQ"

Queue Name

View Source
const GetProductDetailsQueueName = "GetProductDetailsQ"
View Source
const GetProductDetailsResponseQueueName = "GetProductDetailsQR"
View Source
const GetUserInfoQueueName = "GetUserInfoQ"
View Source
const GetUserInfoResponseQueueName = "GetUserInfoQR"
View Source
const ProcessConfirmedOrderQueueName = "ProcessConfirmedOrderQ"
View Source
const ProcessPaymentQueueName = "ProcessPaymentQ"
View Source
const ProcessReturnedPaymentQueueName = "ProcessReturnedPaymentQ"
View Source
const TraceparentHeader = "traceparent"

Variables

This section is empty.

Functions

func AddAPIAttributes

func AddAPIAttributes(c *gin.Context)

func FailOnError

func FailOnError(err error, msg string)

func GetEnv

func GetEnv(key string, fallback string) string

func GetRandomString

func GetRandomString(lenstr int) string

Types

type Config

type Config struct {
	//"PROD"/"DEV"
	EnvType           string
	URLMapper         map[string]string
	ServiceCredential map[string]ServiceCredentialType
}

func InitConfig

func InitConfig() Config

type ReceiveMessageMode

type ReceiveMessageMode int64
const (
	All ReceiveMessageMode = iota
	IDOnly
)

type ServiceCredentialType

type ServiceCredentialType struct {
	Username string
	Password string
}

Jump to

Keyboard shortcuts

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