lib

package
v0.0.0-...-ffb6f1e Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2019 License: MIT Imports: 4 Imported by: 0

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

func DayStartTime(t time.Time) time.Time

DayStartTime will return 00:00:00 time for specified day

func ParseLogLevel

func ParseLogLevel(s string) logrus.Level

ParseLogLevel parses log level from string

func ValidTransactionStatus

func ValidTransactionStatus(u uint8) bool

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

func (TransactionStatus) String

func (t TransactionStatus) String() string

String representation

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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