Versions in this module Expand all Collapse all v0 v0.6.1 Jan 30, 2022 v0.6.0 Jan 23, 2022 Changes in this version + func IsVersionAlreadyExists(err error) bool + func IsVersionNotFound(err error) bool + func NewVersionNotFoundError(msg string) error + func NewVersionNotFoundErrorWithCause(msg string, cause error) error + type Metrics struct + Read ReadMetrics + Write WriteMetrics + type Option func(s *Store) error + var FailWhenMissingDir Option = func(s *Store) error { ... } + var NoIntegrityCheck Option = func(s *Store) error { ... } + type ReadMetrics struct + ReaderCalls int + TotalBytesRead int + TotalTime time.Duration + type Reader interface + Version func() Version + type ReaderOption func(*ReaderOptions) error + func Time(t time.Time) ReaderOption + type ReaderOptions struct + type Store struct + func Open(dir string, options ...Option) (*Store, error) + func (s *Store) DeleteVersion(t time.Time) error + func (s *Store) Metrics() Metrics + func (s *Store) Reader(options ...ReaderOption) (Reader, error) + func (s *Store) Versions() ([]Version, error) + func (s *Store) Writer(options ...WriterOption) (Writer, error) + type Version struct + Size int64 + Time time.Time + type WriteMetrics struct + Aborted int + Successful int + TotalBytesWritten int + TotalTime time.Duration + WriterCalls int + type Writer interface + AbortAndClose func() + Close func() error + Version func() Version + type WriterOption func(*WriterOptions) error + var NoSync WriterOption = func(o *WriterOptions) error { ... } + func WriteTime(t time.Time) WriterOption + type WriterOptions struct