Documentation ¶
Index ¶
Constants ¶
View Source
const ( TYPE_TRANSFER = "transfer" TYPE_TOPUP = "topup" )
Variables ¶
View Source
var ( ErrInternalServerError = errors.New("internal server error") ErrEmailUsed = errors.New("email already in use") ErrEmailNotFound = errors.New("email not found") ErrWalletNotFound = errors.New("wallet not found") ErrWrongEmailPass = errors.New("incorrect email or password") ErrParameterValidation = errors.New("parameter validation failed") ErrInvalidToken = errors.New("jwt authentication token invalid") ErrInsufficientBalance = errors.New("wallet balance insufficient") ErrSendToOwn = errors.New("cannot send money to your own wallet") )
Functions ¶
This section is empty.
Types ¶
type CustomJwtClaim ¶
type CustomJwtClaim struct { jwt.StandardClaims WalletID string }
type Transaction ¶
type Transaction struct { ID string `gorm:"primarykey" json:"id"` TransactionTime time.Time `json:"transaction_time"` TransactionType string `json:"transaction_type"` CreditedWallet string `json:"credited_wallet"` DebitedWallet string `json:"debited_wallet,omitempty"` Notes string `json:"notes"` Amount uint64 `json:"amount"` }
type UserRepository ¶
type UserUsecase ¶
type WalletRepository ¶
type WalletUsecase ¶
Click to show internal directories.
Click to hide internal directories.