lib

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemFreezerRemoteServerAPI

type MemFreezerRemoteServerAPI struct {
	// contains filtered or unexported fields
}

MemFreezerRemoteServerAPI is a mock freezer server implementation.

func NewMemFreezerRemoteServerAPI

func NewMemFreezerRemoteServerAPI() *MemFreezerRemoteServerAPI

func (*MemFreezerRemoteServerAPI) Ancient

func (f *MemFreezerRemoteServerAPI) Ancient(kind string, number uint64) ([]byte, error)

func (*MemFreezerRemoteServerAPI) AncientRange

func (f *MemFreezerRemoteServerAPI) AncientRange(kind string, start, count, maxBytes uint64) ([][]byte, error)

func (*MemFreezerRemoteServerAPI) AncientSize

func (f *MemFreezerRemoteServerAPI) AncientSize(kind string) (uint64, error)

func (*MemFreezerRemoteServerAPI) Ancients

func (f *MemFreezerRemoteServerAPI) Ancients() (uint64, error)

func (*MemFreezerRemoteServerAPI) Append

func (f *MemFreezerRemoteServerAPI) Append(kind string, num uint64, item interface{}) error

func (*MemFreezerRemoteServerAPI) AppendAncient

func (f *MemFreezerRemoteServerAPI) AppendAncient(number uint64, hash, header, body, receipt, td []byte) error

func (*MemFreezerRemoteServerAPI) AppendRaw

func (f *MemFreezerRemoteServerAPI) AppendRaw(kind string, num uint64, item []byte) error

func (*MemFreezerRemoteServerAPI) Close

func (f *MemFreezerRemoteServerAPI) Close() error

func (*MemFreezerRemoteServerAPI) HasAncient

func (f *MemFreezerRemoteServerAPI) HasAncient(kind string, number uint64) (bool, error)

func (*MemFreezerRemoteServerAPI) Reset

func (f *MemFreezerRemoteServerAPI) Reset()

func (*MemFreezerRemoteServerAPI) Sync

func (f *MemFreezerRemoteServerAPI) Sync() error

func (*MemFreezerRemoteServerAPI) TruncateHead

func (f *MemFreezerRemoteServerAPI) TruncateHead(n uint64) error

func (*MemFreezerRemoteServerAPI) TruncateTail

func (f *MemFreezerRemoteServerAPI) TruncateTail(n uint64) error

Jump to

Keyboard shortcuts

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