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 ¶
var (
ErrNotSupported = errors.New("not supported")
)
Functions ¶
Types ¶
type Option ¶
type Option func(*config) error
func WithDHBatchSize ¶
WithDHBatchSize configures the batch size when sending batches of merge requests to DHStore. A value < 1 results in the default size.
func WithDHStoreCluster ¶
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 ¶
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. |