Documentation
¶
Overview ¶
Package chain provides an adaptive wrapper over multiple object storage backends.
Index ¶
- type Chain
- func (chain *Chain) Close() error
- func (chain *Chain) ReadBytesContent(id objectid.ObjectID) (objecttype.Type, []byte, error)
- func (chain *Chain) ReadBytesFull(id objectid.ObjectID) ([]byte, error)
- func (chain *Chain) ReadHeader(id objectid.ObjectID) (objecttype.Type, int64, error)
- func (chain *Chain) ReadReaderContent(id objectid.ObjectID) (objecttype.Type, int64, io.ReadCloser, error)
- func (chain *Chain) ReadReaderFull(id objectid.ObjectID) (io.ReadCloser, error)
- func (chain *Chain) ReadSize(id objectid.ObjectID) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chain ¶
type Chain struct {
// contains filtered or unexported fields
}
Chain queries multiple object databases with an MRU backend preference.
func (*Chain) ReadBytesContent ¶
ReadBytesContent reads an object's type and content bytes from one backend that has it.
func (*Chain) ReadBytesFull ¶
ReadBytesFull reads a full serialized object from one backend that has it.
func (*Chain) ReadHeader ¶
ReadHeader reads object header data from one backend that has it.
func (*Chain) ReadReaderContent ¶
func (chain *Chain) ReadReaderContent(id objectid.ObjectID) (objecttype.Type, int64, io.ReadCloser, error)
ReadReaderContent reads an object's type, declared content length, and content stream from one backend that has it.
func (*Chain) ReadReaderFull ¶
ReadReaderFull reads a full serialized object stream from one backend that has it.
Click to show internal directories.
Click to hide internal directories.