Versions in this module Expand all Collapse all v4 v4.0.0 May 23, 2019 Changes in this version + const Base32EncodingName + const Base64EncodingName + const HexEncodingName + func ErrorAddressNotFound(address []byte) error + func MakeAddresser(hashProvider func() hash.Hash) func(data []byte) []byte + func NewAddressEncoding(encodeToString func([]byte) string, decodeString func(string) ([]byte, error)) *addressEncoding + func NewCloudStore(cloud CloudType, bucket, prefix, region string, addrenc AddressEncoding, ...) (*cloudStore, error) + func NewFileSystemStore(rootDirectory string, encoding AddressEncoding) (*fileSystemStore, error) + func NewIPFSStore(host string, encoding AddressEncoding) (*ipfsStore, error) + func NewLoggingStore(store NamedStore, logger log.Logger) *loggingStore + func NewMemoryStore() *memoryStore + func NewSyncStore(store NamedStore) *syncStore + type AddressEncoding interface + DecodeString func(addressString string) (address []byte, err error) + EncodeToString func(address []byte) (addressString string) + func GetAddressEncoding(name string) (AddressEncoding, error) + type CloudType string + const AWS + const Azure + const GCP + type ContentAddressedStore interface + Address func(data []byte) (address []byte) + Put func(data []byte) (address []byte, err error) + func NewContentAddressedStore(addresser func([]byte) []byte, store Store) ContentAddressedStore + type Locator interface + Location func(address []byte) string + type NamedStore interface + Name func() string + type ReadStore interface + Get func(address []byte) (data []byte, err error) + Stat func(address []byte) (*StatInfo, error) + type StatInfo struct + Address []byte + Exists bool + Location string + Size_ uint64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*StatInfo) Descriptor() ([]byte, []int) + func (*StatInfo) ProtoMessage() + func (m *StatInfo) GetAddress() []byte + func (m *StatInfo) GetExists() bool + func (m *StatInfo) GetLocation() string + func (m *StatInfo) GetSize_() uint64 + func (m *StatInfo) Reset() + func (m *StatInfo) String() string + func (m *StatInfo) XXX_DiscardUnknown() + func (m *StatInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *StatInfo) XXX_Merge(src proto.Message) + func (m *StatInfo) XXX_Size() int + func (m *StatInfo) XXX_Unmarshal(b []byte) error + type Store interface + type WriteStore interface + Put func(address []byte, data []byte) ([]byte, error) Other modules containing this package github.com/monax/hoard github.com/monax/hoard/v3