Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TransactionStatusToString = map[TransactionStatus]string{ TransactionStatusPending: "pending", TransactionStatusApproved: "approved", TransactionStatusFailed: "failed", TransactionStatusStale: "stale", TransactionStatusNotFound: "notfound", }
TransactionStatusToString definition
Functions ¶
func DayStartTime ¶
DayStartTime will return 00:00:00 time for specified day
func ParseLogLevel ¶
ParseLogLevel parses log level from string
func ValidTransactionStatus ¶
ValidTransactionStatus as uint8
Types ¶
type TransactionStatus ¶
type TransactionStatus uint8
TransactionStatus type
const ( // TransactionStatusPending status TransactionStatusPending TransactionStatus = iota + 1 // TransactionStatusApproved status TransactionStatusApproved // TransactionStatusFailed status TransactionStatusFailed // TransactionStatusStale status TransactionStatusStale // TransactionStatusNotFound status TransactionStatusNotFound )
func ParseTransactionStatus ¶
func ParseTransactionStatus(s string) (TransactionStatus, error)
ParseTransactionStatus from string
Click to show internal directories.
Click to hide internal directories.