bucket

package
v1.0.12-tmp Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBucketIDProvider

func NewBucketIDProvider(numberOfBuckets uint32) (*bucketIDProvider, error)

NewBucketIDProvider returns a new instance of bucket id provider

func NewBucketIndexHandler

func NewBucketIndexHandler(bucket core.Storer) (*bucketIndexHandler, error)

NewBucketIndexHandler returns a new instance of a bucket index handler

func NewMongoDBIndexHandler

func NewMongoDBIndexHandler(mongoClient mongodb.MongoDBClient, collID mongodb.CollectionID) (*mongodbIndexHandler, error)

NewMongoDBIndexHandler returns a new instance of a mongodb index handler

func NewShardedStorageWithIndex

func NewShardedStorageWithIndex(args ArgShardedStorageWithIndex) (*shardedStorageWithIndex, error)

NewShardedStorageWithIndex returns a new instance of sharded storage with index

Types

type ArgShardedStorageWithIndex

type ArgShardedStorageWithIndex struct {
	BucketIDProvider core.BucketIDProvider
	BucketHandlers   map[uint32]core.IndexHandler
}

ArgShardedStorageWithIndex is the DTO used to create a new instance of sharded storage with index

Jump to

Keyboard shortcuts

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