Documentation ¶
Index ¶
- Constants
- func CommonAddressHexRepair(address *common.Address) string
- type CounterID
- type Iterator
- type ListenCloser
- type ListenCloserFactory
- type NoopBatch
- func (*NoopBatch) Delete([]byte) error
- func (b *NoopBatch) Inner() database.Batch
- func (*NoopBatch) Put(_, _ []byte) error
- func (*NoopBatch) Replay(database.KeyValueWriter) error
- func (*NoopBatch) Reset()
- func (b *NoopBatch) Size() int
- func (*NoopBatch) ValueSize() int
- func (*NoopBatch) Write() error
- type NoopDatabase
- func (*NoopDatabase) Close() error
- func (*NoopDatabase) Compact(_, _ []byte) error
- func (*NoopDatabase) Delete([]byte) error
- func (*NoopDatabase) Get([]byte) ([]byte, error)
- func (*NoopDatabase) Has([]byte) (bool, error)
- func (*NoopDatabase) NewBatch() database.Batch
- func (*NoopDatabase) NewIterator() database.Iterator
- func (*NoopDatabase) NewIteratorWithPrefix([]byte) database.Iterator
- func (*NoopDatabase) NewIteratorWithStart([]byte) database.Iterator
- func (db *NoopDatabase) NewIteratorWithStartAndPrefix(start, prefix []byte) database.Iterator
- func (*NoopDatabase) Put(_, _ []byte) error
- func (*NoopDatabase) Stat(string) (string, error)
- type NoopManager
- func (n *NoopManager) Close() error
- func (n *NoopManager) Current() *manager.VersionedDatabase
- func (n *NoopManager) GetDatabases() []*manager.VersionedDatabase
- func (n *NoopManager) NewCompleteMeterDBManager(namespace string, registerer prometheus.Registerer) (manager.Manager, error)
- func (n *NoopManager) NewMeterDBManager(namespace string, registerer prometheus.Registerer) (manager.Manager, error)
- func (n *NoopManager) NewNestedPrefixDBManager(prefix []byte) manager.Manager
- func (n *NoopManager) NewPrefixDBManager(prefix []byte) manager.Manager
- func (n *NoopManager) Previous() (*manager.VersionedDatabase, bool)
- type RetrySleeper
- type Running
- type UniqueID
- type Vers
- type Worker
Constants ¶
View Source
const (
KeyValueBootstrap = "bootstrap"
)
Variables ¶
This section is empty.
Functions ¶
func CommonAddressHexRepair ¶ added in v1.2.3
Types ¶
type CounterID ¶
type CounterID struct {
// contains filtered or unexported fields
}
func NewCounterID ¶
func NewCounterID() *CounterID
type ListenCloser ¶ added in v1.1.3
ListenCloser listens for messages until it's asked to close
type ListenCloserFactory ¶ added in v1.1.3
type ListenCloserFactory func(*servicesctrl.Control, cfg.Config, int, int) ListenCloser
type NoopBatch ¶
type NoopBatch struct{}
NoopBatch does nothing
type NoopDatabase ¶
type NoopDatabase struct{}
NoopDatabase is a lightning fast key value store with probabilistic operations.
func (*NoopDatabase) NewBatch ¶
func (*NoopDatabase) NewBatch() database.Batch
NewBatch returns a new batch
func (*NoopDatabase) NewIterator ¶
func (*NoopDatabase) NewIterator() database.Iterator
NewIterator returns a new empty iterator
func (*NoopDatabase) NewIteratorWithPrefix ¶
func (*NoopDatabase) NewIteratorWithPrefix([]byte) database.Iterator
NewIteratorWithPrefix returns a new empty iterator
func (*NoopDatabase) NewIteratorWithStart ¶
func (*NoopDatabase) NewIteratorWithStart([]byte) database.Iterator
NewIteratorWithStart returns a new empty iterator
func (*NoopDatabase) NewIteratorWithStartAndPrefix ¶
func (db *NoopDatabase) NewIteratorWithStartAndPrefix(start, prefix []byte) database.Iterator
NewIteratorWithStartAndPrefix returns a new empty iterator
type NoopManager ¶ added in v1.4.5
type NoopManager struct {
Databases []*manager.VersionedDatabase
}
func NewNoopManager ¶ added in v1.4.5
func NewNoopManager(db database.Database) *NoopManager
func (*NoopManager) Close ¶ added in v1.4.5
func (n *NoopManager) Close() error
func (*NoopManager) Current ¶ added in v1.4.5
func (n *NoopManager) Current() *manager.VersionedDatabase
func (*NoopManager) GetDatabases ¶ added in v1.4.5
func (n *NoopManager) GetDatabases() []*manager.VersionedDatabase
func (*NoopManager) NewCompleteMeterDBManager ¶ added in v1.4.5
func (n *NoopManager) NewCompleteMeterDBManager(namespace string, registerer prometheus.Registerer) (manager.Manager, error)
func (*NoopManager) NewMeterDBManager ¶ added in v1.4.5
func (n *NoopManager) NewMeterDBManager(namespace string, registerer prometheus.Registerer) (manager.Manager, error)
func (*NoopManager) NewNestedPrefixDBManager ¶ added in v1.4.5
func (n *NoopManager) NewNestedPrefixDBManager(prefix []byte) manager.Manager
func (*NoopManager) NewPrefixDBManager ¶ added in v1.4.5
func (n *NoopManager) NewPrefixDBManager(prefix []byte) manager.Manager
func (*NoopManager) Previous ¶ added in v1.4.5
func (n *NoopManager) Previous() (*manager.VersionedDatabase, bool)
type RetrySleeper ¶ added in v1.3.2
type RetrySleeper struct {
// contains filtered or unexported fields
}
func NewRetrySleeper ¶ added in v1.3.2
func (*RetrySleeper) Inc ¶ added in v1.3.2
func (r *RetrySleeper) Inc()
type Running ¶ added in v1.3.2
type Running interface { Close() IsStopped() bool }
func NewRunning ¶ added in v1.3.2
func NewRunning() Running
type UniqueID ¶
func NewMemoryUniqueID ¶
func NewMemoryUniqueID() UniqueID
Source Files ¶
Click to show internal directories.
Click to hide internal directories.