Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { Id string `json:"id"` Name string `json:"name"` Cpf string `json:"cpf"` Secret string `json:"secret"` Balance int `json:"balance"` Created_at time.Time `json:"created_at"` }
Account Entity
type Repository ¶
type Repository interface { Store(*Account) error GetBalance(Account) (int, error) ExistsByCPF(*Account) (bool, error) UpdateBalance(*Account) error GetById(string) (Account, error) GetByCPF(string) (Account, error) ShowAll() ([]Account, error) GenerateID() string Transaction(driver.Tx) Repository }
Manage the persistence related to account entity
Click to show internal directories.
Click to hide internal directories.