Documentation ¶
Index ¶
- type Backend
- func (b *Backend) Close() error
- func (b *Backend) ReadBody(hash types.Hash) (*types.Body, bool)
- func (b *Backend) ReadCanonicalHash(n uint64) (types.Hash, bool)
- func (b *Backend) ReadDiff(hash types.Hash) (*big.Int, bool)
- func (b *Backend) ReadForks() []types.Hash
- func (b *Backend) ReadHeadHash() (types.Hash, bool)
- func (b *Backend) ReadHeadNumber() (uint64, bool)
- func (b *Backend) ReadHeader(hash types.Hash) (*types.Header, bool)
- func (b *Backend) ReadReceipts(hash types.Hash) ([]*types.Receipt, bool)
- func (b *Backend) ReadSnapshot(hash types.Hash) ([]byte, bool)
- func (b *Backend) ReadTransaction(hash types.Hash) (*types.Transaction, bool)
- func (b *Backend) ReadTxLookup(hash types.Hash) (types.Hash, bool)
- func (b *Backend) WriteBody(hash types.Hash, body *types.Body) error
- func (b *Backend) WriteCanonicalHash(n uint64, hash types.Hash) error
- func (b *Backend) WriteCanonicalHeader(h *types.Header, diff *big.Int) error
- func (b *Backend) WriteDiff(hash types.Hash, diff *big.Int) error
- func (b *Backend) WriteForks(forks []types.Hash) error
- func (b *Backend) WriteHeadHash(h types.Hash) error
- func (b *Backend) WriteHeadNumber(n uint64) error
- func (b *Backend) WriteHeader(h *types.Header) error
- func (b *Backend) WriteReceipts(hash types.Hash, receipts []*types.Receipt) error
- func (b *Backend) WriteSnapshot(hash types.Hash, blob []byte) error
- func (b *Backend) WriteTransaction(hash types.Hash, t *types.Transaction) error
- func (b *Backend) WriteTxLookup(hash types.Hash, blockHash types.Hash) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend is the postgresql backend
func (*Backend) ReadCanonicalHash ¶
ReadCanonicalHash implements the storage backend
func (*Backend) ReadHeadHash ¶
ReadHeadHash implements the storage backend
func (*Backend) ReadHeadNumber ¶
ReadHeadNumber implements the storage backend
func (*Backend) ReadHeader ¶
ReadHeader implements the storage backend
func (*Backend) ReadReceipts ¶
ReadReceipts implements the storage interface
func (*Backend) ReadSnapshot ¶
ReadSnapshot implements the storage backend
func (*Backend) ReadTransaction ¶
ReadTransaction read a transaction by hash
func (*Backend) ReadTxLookup ¶
ReadTxLookup implements the storage backend
func (*Backend) WriteCanonicalHash ¶
WriteCanonicalHash implements the storage backend
func (*Backend) WriteCanonicalHeader ¶
WriteCanonicalHeader implements the storage backend
func (*Backend) WriteForks ¶
WriteForks implements the storage backend
func (*Backend) WriteHeadHash ¶
WriteHeadHash implements the storage backend
func (*Backend) WriteHeadNumber ¶
WriteHeadNumber implements the storage backend
func (*Backend) WriteHeader ¶
WriteHeader implements the storage backend
func (*Backend) WriteReceipts ¶
WriteReceipts implements the storage interface
func (*Backend) WriteSnapshot ¶
WriteSnapshot implements the storage backend