Documentation ¶
Overview ¶
streamstore implements helpers to store large data streams in a repository
Index ¶
Constants ¶
const ( FaultErrorsType = "fault_error" DetailsType = "details" )
Variables ¶
This section is empty.
Functions ¶
func NewStreamer ¶
func NewStreamer( kw *kopia.Wrapper, tenant string, service path.ServiceType, ) *storeStreamer
NewStreamer creates a new streamstore Streamer for stream writing metadata files to the store.
Types ¶
type Collectable ¶
type Collectable struct { Unmr Unmarshaller Type string // contains filtered or unexported fields }
func DetailsCollector ¶
func DetailsCollector(mr Marshaller) Collectable
DetailsCollector generates a collection of details.DetailsModel entries containing the marshalled bytes from the provided marshaller.
func DetailsReader ¶
func DetailsReader(unmr Unmarshaller) Collectable
DetailsReader reads a collection of details.DetailsModel entries using the provided unmarshaller.
func FaultErrorsCollector ¶
func FaultErrorsCollector(mr Marshaller) Collectable
FaultErrorsCollector generates a collection of fault.Errors containing the marshalled bytes from the provided marshaller.
func FaultErrorsReader ¶
func FaultErrorsReader(unmr Unmarshaller) Collectable
FaultErrorsReader reads a collection of fault.Errors entries using the provided unmarshaller.
type CollectorWriter ¶
type Marshaller ¶
Marshallers are used to convert structs into bytes to be persisted in the store.
type Streamer ¶
Streamer is the core interface for all types of data streamed to and from the store.
type Unmarshaller ¶
type Unmarshaller func(io.ReadCloser) error
Unmarshallers are used to serialize the bytes in the store into the original struct.