client

package
v0.8.17 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: Apache-2.0, MIT Imports: 1 Imported by: 0

Documentation

Overview

Package client forks the HTTP request models of dhtsotre in order to avoid forcing upstream projects into C-bindings required by Foundation DB. Note that this repo only needs the Write request models as it only ever persists data to dhstore. It does not look up records from it.

The structs here are compatible with the API specification of dhstore. See: https://github.com/ipni/dhstore/blob/main/openapi.yaml

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Index

type Index struct {
	Key   multihash.Multihash `json:"key"`
	Value []byte              `json:"value"`
}

type MergeIndexRequest

type MergeIndexRequest struct {
	Merges []Index `json:"merges"`
}

type PutMetadataRequest

type PutMetadataRequest struct {
	Key   []byte `json:"key"`
	Value []byte `json:"value"`
}

Jump to

Keyboard shortcuts

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