accountUsecases

package
v0.0.0-...-20a34b2 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAccountService

func NewAccountService(
	repoAccount account.Repository,
) account.Service

Generate new Account services

Types

type Services

type Services struct {
	// contains filtered or unexported fields
}

Define services - Account services depends on Repo

func (*Services) CreateAccount

func (accSvc *Services) CreateAccount(acc *account.Account) error

func (*Services) GetAccount

func (accSvc *Services) GetAccount(id string) (account.Account, error)

func (*Services) ShowAccounts

func (accSvc *Services) ShowAccounts() ([]account.Account, error)

func (*Services) UpdateBalance

func (accSvc *Services) UpdateBalance(acc account.Account) error

Jump to

Keyboard shortcuts

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