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
Click to show internal directories.
Click to hide internal directories.