remotestore

package module
v0.0.0-...-be456c3 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBlockStoreForURI

func CreateBlockStoreForURI(
	uri string,
	optionalStoreIndexPaths []string,
	jobAPI longtaillib.Longtail_JobAPI,
	numWorkerCount int,
	targetBlockSize uint32,
	maxChunksPerBlock uint32,
	accessType AccessType,
	enableFileMapping bool,
	opts ...longtailstorelib.BlobStoreOption) (longtaillib.Longtail_BlockStoreAPI, error)

func NewRemoteBlockStore

func NewRemoteBlockStore(
	jobAPI longtaillib.Longtail_JobAPI,
	blobStore longtailstorelib.BlobStore,
	optionalStoreIndexPaths []string,
	workerCount int,
	accessType AccessType,
	opts ...longtailstorelib.BlobStoreOption) (longtaillib.BlockStoreAPI, error)

NewRemoteBlockStore ...

Types

type AccessType

type AccessType int

AccessType defines how we will access the data in the store

const (
	// Init - read/write access with forced rebuild of store index
	Init AccessType = iota
	// ReadWrite - read/write access
	ReadWrite
	// ReadOnly - read only access
	ReadOnly
)

Jump to

Keyboard shortcuts

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