Documentation ¶
Index ¶
- Variables
- func MakeResidentBufferQueue(buffSize int) api.RequestPriorityQueue
- func MakeResidentHeadCache() api.HeadCache
- func MakeResidentIndexCache(buffSize int) api.IndexCache
- func MakeResidentMemoryCache(indexBufferSize, namespaceBufferSize int) api.Cache
- func MakeResidentMemoryImage() api.MemoryImage
- func MakeResidentNamespaceCache(buffSize int) api.NamespaceCache
- type BoltFactory
- type BoltOptions
- type Union
- func (cache Union) CloseCache() error
- func (cache Union) GetHead() (crdt.IPFSPath, error)
- func (cache Union) GetIndex(indexAddr crdt.IPFSPath) (crdt.Index, error)
- func (cache Union) GetNamespace(namespaceAddr crdt.IPFSPath) (crdt.Namespace, error)
- func (cache Union) SetHead(head crdt.IPFSPath) error
- func (cache Union) SetIndex(indexAddr crdt.IPFSPath, index crdt.Index) error
- func (cache Union) SetNamespace(namespaceAddr crdt.IPFSPath, namespace crdt.Namespace) error
Constants ¶
This section is empty.
Variables ¶
View Source
var BOLT_HEAD_CACHE_BUCKET = []byte("head_cache")
View Source
var BOLT_HEAD_CACHE_KEY = []byte("head")
View Source
var BOLT_INDEX_CACHE_BUCKET = []byte("index_cache")
View Source
var BOLT_MEMORY_IMAGE_BUCKET = []byte("memory_image")
View Source
var BOLT_MEMORY_IMAGE_INDEX_KEY = []byte("current_index")
View Source
var BOLT_NAMESPACE_CACHE_BUCKET = []byte("namespace_cache")
View Source
var DATA_KEY = []byte("data")
View Source
var NANO_TIMESTAMP_KEY = []byte("nano_timestamp")
View Source
var TIMESTAMP_KEY = []byte("timestamp")
Functions ¶
func MakeResidentBufferQueue ¶
func MakeResidentBufferQueue(buffSize int) api.RequestPriorityQueue
func MakeResidentHeadCache ¶
func MakeResidentIndexCache ¶
func MakeResidentIndexCache(buffSize int) api.IndexCache
func MakeResidentMemoryCache ¶
func MakeResidentMemoryImage ¶
func MakeResidentMemoryImage() api.MemoryImage
MakeResidentMemoryImage makes an non-ACID api.MemoryImage implementation that is only suitable for tests.
func MakeResidentNamespaceCache ¶
func MakeResidentNamespaceCache(buffSize int) api.NamespaceCache
Types ¶
type BoltFactory ¶
type BoltFactory struct {
BoltOptions
}
func MakeBoltFactory ¶ added in v0.19.0
func MakeBoltFactory(options BoltOptions) (BoltFactory, error)
func (BoltFactory) MakeMemoryImage ¶
func (factory BoltFactory) MakeMemoryImage() (api.MemoryImage, error)
type BoltOptions ¶
type Union ¶ added in v0.19.0
type Union struct { HeadCache api.HeadCache IndexCache api.IndexCache NamespaceCache api.NamespaceCache }
func (Union) CloseCache ¶ added in v0.19.0
func (Union) GetNamespace ¶ added in v0.19.0
Click to show internal directories.
Click to hide internal directories.