repositories

package
v0.0.0-...-72f07ca Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountRepository

type AccountRepository interface {
	RetrieveBalanceAtBlock(addressStr string, consensusEnd int64) ([]types.Amount, *rTypes.Error)
}

AccountRepository Interface that all AccountRepository structs must implement

type AddressBookEntryRepository

type AddressBookEntryRepository interface {
	Entries() (*types.AddressBookEntries, *rTypes.Error)
}

AddressBookEntryRepository Interface that all AddressBookEntryRepository structs must implement

type BlockRepository

type BlockRepository interface {
	FindByIndex(index int64) (*types.Block, *rTypes.Error)
	FindByHash(hash string) (*types.Block, *rTypes.Error)
	FindByIdentifier(index int64, hash string) (*types.Block, *rTypes.Error)
	RetrieveGenesis() (*types.Block, *rTypes.Error)
	RetrieveLatest() (*types.Block, *rTypes.Error)
}

BlockRepository Interface that all BlockRepository structs must implement

type TokenRepository

type TokenRepository interface {
	Find(tokenIdStr string) (*types.Token, *rTypes.Error)
}

TokenRepository Interface that all TokenRepository structs must implement

type TransactionRepository

type TransactionRepository interface {
	FindByHashInBlock(identifier string, consensusStart int64, consensusEnd int64) (*types.Transaction, *rTypes.Error)
	FindBetween(start int64, end int64) ([]*types.Transaction, *rTypes.Error)
	Results() (map[int]string, *rTypes.Error)
	Types() (map[int]string, *rTypes.Error)
	TypesAsArray() ([]string, *rTypes.Error)
}

TransactionRepository Interface that all TransactionRepository structs must implement

Jump to

Keyboard shortcuts

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