constant

package
v0.0.0-...-0bcc17c Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RedisAccountStatus = "account:status:%s"
	RedisDefaultExp    = 24 * 7 * time.Hour
)
View Source
const (
	ResponseStatusSuccess = "success"
	ResponseStatusFail    = "fail"
)
View Source
const (
	TransactionTypeDeposit    = "deposit"
	TransactionTypeWithdrawal = "withdrawal"
)
View Source
const (
	TransactionStatusSuccess = "success"
	TransactionStatusFailed  = "failed"
)

Variables

View Source
var (
	// Generic errors
	ErrBadRequest          = errors.New("Bad request")
	ErrUnauthorized        = errors.New("Unauthorized")
	ErrNotFound            = errors.New("Not found")
	ErrUnprocessableEntity = errors.New("Unprocessable entity")
	ErrInternal            = errors.New("Internal error")

	// Specific errors
	ErrAccountAlreadyExists   = errors.New("Account already exists")
	ErrAccountAlreadyEnabled  = errors.New("Account already enabled")
	ErrAccountAlreadyDisabled = errors.New("Account already disabled")
	ErrAccountDisabled        = errors.New("Account disabled")
	ErrDuplicateReferenceID   = errors.New("Duplicate reference ID")
	ErrInsufficientBalance    = errors.New("Insufficient balance")
)

Known errors

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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