Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
// contains filtered or unexported fields
}
Account presenter contains logic related to UI.
func NewAccount ¶
NewAccount returns Account presenter.
type Category ¶
type Category struct{}
Category presenter contains logic related to UI.
type Currency ¶
type Currency struct{}
Currency presenter contains logic related to UI.
type Presenter ¶
type Presenter struct {
// contains filtered or unexported fields
}
Presenter is a facade structure which aggregates all Presenters. It is used for convenience.
func (*Presenter) Transaction ¶
func (p *Presenter) Transaction() *Transaction
Transaction returns category presenter.
type Transaction ¶
type Transaction struct {
// contains filtered or unexported fields
}
Transaction presenter contains logic related to UI.
func NewTransaction ¶
func NewTransaction(accountService *service.Account, categoryService *service.Category) *Transaction
NewTransaction returns Transaction presenter.
func (*Transaction) FromMap ¶
func (p *Transaction) FromMap(m map[string]string) (*model.Transaction, error)
FromMap parses map[string]string to model.Transaction. It doesn't handles ID field.
func (*Transaction) ToMap ¶
func (p *Transaction) ToMap(t *model.Transaction) map[string]string
ToMap converts model.Transaction to map[string]string. It doesn't handles ID field.
Click to show internal directories.
Click to hide internal directories.