Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = buildVersion()
Functions ¶
This section is empty.
Types ¶
type DHStore ¶
type DHStore interface {
io.Closer
MergeIndexes([]Index) error
DeleteIndexes([]Index) error
PutMetadata(HashedValueKey, EncryptedMetadata) error
Lookup(multihash.Multihash) ([]EncryptedValueKey, error)
GetMetadata(HashedValueKey) (EncryptedMetadata, error)
DeleteMetadata(HashedValueKey) error
}
type EncryptedMetadata ¶
type EncryptedMetadata []byte
type EncryptedValueKey ¶
type EncryptedValueKey []byte
type EncryptedValueKeyResult ¶ added in v0.0.2
type EncryptedValueKeyResult struct {
EncryptedValueKey EncryptedValueKey `json:"EncryptedValueKey"`
}
type ErrHttpResponse ¶ added in v0.1.0
func (ErrHttpResponse) Error ¶ added in v0.1.0
func (e ErrHttpResponse) Error() string
func (ErrHttpResponse) WriteTo ¶ added in v0.1.0
func (e ErrHttpResponse) WriteTo(w http.ResponseWriter)
type ErrInvalidHashedValueKey ¶ added in v0.0.3
type ErrInvalidHashedValueKey struct {
Key HashedValueKey
Err error
}
func (ErrInvalidHashedValueKey) Error ¶ added in v0.0.3
func (e ErrInvalidHashedValueKey) Error() string
func (ErrInvalidHashedValueKey) Unwrap ¶ added in v0.0.3
func (e ErrInvalidHashedValueKey) Unwrap() error
type ErrMultihashDecode ¶
func (ErrMultihashDecode) Error ¶
func (e ErrMultihashDecode) Error() string
func (ErrMultihashDecode) Unwrap ¶
func (e ErrMultihashDecode) Unwrap() error
type ErrUnsupportedMulticodecCode ¶
type ErrUnsupportedMulticodecCode struct {
Code multicodec.Code
}
func (ErrUnsupportedMulticodecCode) Error ¶
func (e ErrUnsupportedMulticodecCode) Error() string
type HashedValueKey ¶
type HashedValueKey []byte
type Index ¶ added in v0.0.3
type Index struct {
Key multihash.Multihash `json:"key"`
Value EncryptedValueKey `json:"value"`
}
Click to show internal directories.
Click to hide internal directories.