balance

package
v0.0.0-...-22350a6 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	// BeginTx begins a new transaction
	BeginTx(context.Context) (tx.Tx, error)
	// GetAccntBal retreives the account balance within tx
	GetAccntBal(context.Context, tx.Tx, account.AccountID) (*account.Balance, error)
}

Repository is a balance repository

type Service

type Service interface {
	// GetAccntBal retrieives the account balance
	GetAccntBal(context.Context, account.AccountID) (*account.Balance, error)
}

Service is an account balance service

func NewService

func NewService(balRepo Repository) Service

NewService takes a balance repository and returns a balance service

Jump to

Keyboard shortcuts

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