Documentation ¶
Index ¶
- type MemFreezerRemoteServerAPI
- func (f *MemFreezerRemoteServerAPI) Ancient(kind string, number uint64) ([]byte, error)
- func (f *MemFreezerRemoteServerAPI) AncientRange(kind string, start, count, maxBytes uint64) ([][]byte, error)
- func (f *MemFreezerRemoteServerAPI) AncientSize(kind string) (uint64, error)
- func (f *MemFreezerRemoteServerAPI) Ancients() (uint64, error)
- func (f *MemFreezerRemoteServerAPI) Append(kind string, num uint64, item interface{}) error
- func (f *MemFreezerRemoteServerAPI) AppendAncient(number uint64, hash, header, body, receipt, td []byte) error
- func (f *MemFreezerRemoteServerAPI) AppendRaw(kind string, num uint64, item []byte) error
- func (f *MemFreezerRemoteServerAPI) Close() error
- func (f *MemFreezerRemoteServerAPI) HasAncient(kind string, number uint64) (bool, error)
- func (f *MemFreezerRemoteServerAPI) Reset()
- func (f *MemFreezerRemoteServerAPI) Sync() error
- func (f *MemFreezerRemoteServerAPI) TruncateHead(n uint64) error
- func (f *MemFreezerRemoteServerAPI) TruncateTail(n uint64) error
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
Click to show internal directories.
Click to hide internal directories.