Documentation ¶
Index ¶
- type DB
- func (m DB) CreateAccounts(accounts []dmodels.Account) error
- func (m DB) CreateProposals(proposals []dmodels.Proposal) error
- func (m DB) CreateValidators(validators []dmodels.Validator) error
- func (m DB) GetAccount(address string) (account dmodels.Account, err error)
- func (m DB) GetAccounts(filter filters.Accounts) (accounts []dmodels.Account, err error)
- func (m DB) GetAccountsTotal(filter filters.Accounts) (total uint64, err error)
- func (m DB) GetParser(title string) (parser dmodels.Parser, err error)
- func (m DB) GetParsers() (parsers []dmodels.Parser, err error)
- func (m DB) GetProposals(filter filters.Proposals) (proposals []dmodels.Proposal, err error)
- func (m DB) UpdateAccount(account dmodels.Account) error
- func (m DB) UpdateParser(parser dmodels.Parser) error
- func (m DB) UpdateProposal(proposal dmodels.Proposal) error
- func (m DB) UpdateValidators(validator dmodels.Validator) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (DB) GetAccounts ¶
func (DB) GetAccountsTotal ¶
func (DB) GetProposals ¶
Click to show internal directories.
Click to hide internal directories.