Documentation
¶
Index ¶
- func NewWaitingCache(prov storage.Provider, blockSize int) (*Local, *Remote)
- func NewWaitingCacheWithLogger(prov storage.Provider, blockSize int, log types.Logger) (*Local, *Remote)
- type Local
- func (wcl *Local) Availability() (int, int)
- func (wcl *Local) CancelWrites(offset int64, length int64)
- func (wcl *Local) Close() error
- func (wcl *Local) DirtyBlocks(blocks []uint)
- func (wcl *Local) Flush() error
- func (wcl *Local) GetMetrics() *Metrics
- func (wcl *Local) ReadAt(buffer []byte, offset int64) (int, error)
- func (wcl *Local) SendSiloEvent(eventType storage.EventType, eventData storage.EventData) []storage.EventReturnData
- func (wcl *Local) Size() uint64
- func (wcl *Local) WriteAt(buffer []byte, offset int64) (int, error)
- type Metrics
- type Remote
- func (wcr *Remote) CancelWrites(offset int64, length int64)
- func (wcr *Remote) Close() error
- func (wcr *Remote) Flush() error
- func (wcr *Remote) GetMetrics() *Metrics
- func (wcr *Remote) ReadAt(_ []byte, _ int64) (int, error)
- func (wcr *Remote) SendSiloEvent(eventType storage.EventType, eventData storage.EventData) []storage.EventReturnData
- func (wcr *Remote) Size() uint64
- func (wcr *Remote) WriteAt(buffer []byte, offset int64) (int, error)
- type WaitingCache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Local ¶ added in v0.1.0
type Local struct { storage.ProviderWithEvents NeedAt func(offset int64, length int32) DontNeedAt func(offset int64, length int32) // contains filtered or unexported fields }
func (*Local) Availability ¶ added in v0.1.0
func (*Local) CancelWrites ¶ added in v0.1.0
func (*Local) DirtyBlocks ¶ added in v0.1.0
func (*Local) GetMetrics ¶ added in v0.1.5
func (*Local) SendSiloEvent ¶ added in v0.1.0
func (wcl *Local) SendSiloEvent(eventType storage.EventType, eventData storage.EventData) []storage.EventReturnData
Relay events to embedded StorageProvider
type Remote ¶ added in v0.1.0
type Remote struct { storage.ProviderWithEvents // contains filtered or unexported fields }
func (*Remote) CancelWrites ¶ added in v0.1.0
func (*Remote) GetMetrics ¶ added in v0.1.5
func (*Remote) SendSiloEvent ¶ added in v0.1.0
func (wcr *Remote) SendSiloEvent(eventType storage.EventType, eventData storage.EventData) []storage.EventReturnData
Relay events to embedded StorageProvider
type WaitingCache ¶
type WaitingCache struct {
// contains filtered or unexported fields
}
*
- Waiting cache StorageProvider *
- NB: This tracks COMPLETE blocks only. Not partial ones. *
func (*WaitingCache) GetMetrics ¶ added in v0.1.5
func (i *WaitingCache) GetMetrics() *Metrics
Click to show internal directories.
Click to hide internal directories.