Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNotification ¶
func CreateNotification()
func ListNotifications ¶
func ListNotifications()
func SendMessage ¶
func SendMessage()
Types ¶
type LoginResponse ¶
type LoginResponse struct {
Token Token `json:"token"`
}
func LoginService ¶
func LoginService(username string, password string) *LoginResponse
type NotificatonService ¶
type NotificatonService interface { CreateNotification() ListNotifications() SendEmail() SendMessage() }
type SignUpResponse ¶
func SignUpService ¶
func SignUpService() *SignUpResponse
type TransactionTxResult ¶
type TransactionTxResult struct { Transfer models.Transaction `json:"transfer"` FromAccount models.Account `json:"from_account"` ToAccount models.Account `json:"to_account"` FromEntry models.AccountTransactionsEntry `json:"from_entry"` ToEntry models.AccountTransactionsEntry `json:"to_entry"` }
func TransferService ¶
func TransferService(ctx context.Context, transaction models.CreateTransferRecordParams) (TransactionTxResult, error)
Executes a DB transaction for Transfer of money Should avoid deadlock and be atomic action
Click to show internal directories.
Click to hide internal directories.