dhstore

package
v0.8.12 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0, MIT Imports: 19 Imported by: 2

Documentation

Overview

Package dhstore defines an dhstore client.

When creating an indexer that uses this value store, the indexer should generally not be given a cache, unless the same multihashes and values are frequently written.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotSupported = errors.New("not supported")
)

Functions

func New

func New(dhstoreURL string, options ...Option) (*dhStore, error)

Types

type Option

type Option func(*config) error

func WithDHBatchSize

func WithDHBatchSize(size int) Option

WithDHBatchSize configures the batch size when sending batches of merge requests to DHStore. A value < 1 results in the default size.

func WithDHStoreCluster

func WithDHStoreCluster(clusterUrls []string) Option

WithDHStoreCluster provide addional URLs that the core will send delete requests to. Deletes are send to the dhstoreURL as well as to all dhstoreClusterURLs. This is required as deletes need to be applied to all nodes until consistent hashing is implemented. dhstoreURL must not be included in this list.

func WithHttpClientTimeout

func WithHttpClientTimeout(timeout time.Duration) Option

WithHttpClientTimeout sets http timeout for queries to DHStore

Directories

Path Synopsis
Package client forks the HTTP request models of dhtsotre in order to avoid forcing upstream projects into C-bindings required by Foundation DB.
Package client forks the HTTP request models of dhtsotre in order to avoid forcing upstream projects into C-bindings required by Foundation DB.

Jump to

Keyboard shortcuts

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