Documentation ¶
Index ¶
- type AccountIdentity
- type AccountRow
- type Accounts
- type AccountsListOrder
- type AccountsView
- func (accountsView *AccountsView) FindBy(identity *AccountIdentity) (*AccountRow, error)
- func (accountsView *AccountsView) List(order AccountsListOrder, pagination *pagination.Pagination) ([]AccountRow, *pagination.PaginationResult, error)
- func (accountsView *AccountsView) Upsert(account *AccountRow) error
- type MockAccountsView
- func (accountsView *MockAccountsView) FindBy(identity *AccountIdentity) (*AccountRow, error)
- func (accountsView *MockAccountsView) List(order AccountsListOrder, paginate *pagination.Pagination) ([]AccountRow, *pagination.PaginationResult, error)
- func (accountsView *MockAccountsView) Upsert(account *AccountRow) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountIdentity ¶
type AccountIdentity struct {
Address string
}
type AccountRow ¶
type Accounts ¶
type Accounts interface { Upsert(*AccountRow) error FindBy(*AccountIdentity) (*AccountRow, error) List(AccountsListOrder, *pagination.Pagination) ([]AccountRow, *pagination.PaginationResult, error) }
func NewAccountsView ¶
func NewMockAccountsView ¶
type AccountsListOrder ¶
type AccountsView ¶
type AccountsView struct {
// contains filtered or unexported fields
}
func (*AccountsView) FindBy ¶
func (accountsView *AccountsView) FindBy(identity *AccountIdentity) (*AccountRow, error)
func (*AccountsView) List ¶
func (accountsView *AccountsView) List( order AccountsListOrder, pagination *pagination.Pagination, ) ([]AccountRow, *pagination.PaginationResult, error)
func (*AccountsView) Upsert ¶
func (accountsView *AccountsView) Upsert(account *AccountRow) error
type MockAccountsView ¶
func (*MockAccountsView) FindBy ¶
func (accountsView *MockAccountsView) FindBy(identity *AccountIdentity) (*AccountRow, error)
func (*MockAccountsView) List ¶
func (accountsView *MockAccountsView) List( order AccountsListOrder, paginate *pagination.Pagination, ) ([]AccountRow, *pagination.PaginationResult, error)
func (*MockAccountsView) Upsert ¶
func (accountsView *MockAccountsView) Upsert(account *AccountRow) error
Click to show internal directories.
Click to hide internal directories.