Documentation ¶
Index ¶
- func IsVersionAlreadyExists(err error) bool
- func IsVersionNotFound(err error) bool
- func NewVersionNotFoundError(msg string) error
- func NewVersionNotFoundErrorWithCause(msg string, cause error) error
- type Metrics
- type Option
- type ReadMetrics
- type Reader
- type ReaderOption
- type ReaderOptions
- type Store
- type Version
- type WriteMetrics
- type Writer
- type WriterOption
- type WriterOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsVersionAlreadyExists ¶
func IsVersionNotFound ¶
func NewVersionNotFoundError ¶
Types ¶
type Metrics ¶
type Metrics struct { Read ReadMetrics Write WriteMetrics }
type ReadMetrics ¶
type Reader ¶
type Reader interface { io.ReadCloser Version() Version }
type ReaderOption ¶
type ReaderOption func(*ReaderOptions) error
func Time ¶
func Time(t time.Time) ReaderOption
type ReaderOptions ¶
type ReaderOptions struct {
// contains filtered or unexported fields
}
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
type WriteMetrics ¶
type WriterOption ¶
type WriterOption func(*WriterOptions) error
var NoSync WriterOption = func(o *WriterOptions) error { o.sync = func(file *os.File) error { return nil } return nil }
func WriteTime ¶
func WriteTime(t time.Time) WriterOption
WriteTime is not named Time to avoid name conflict with ReaderOption
type WriterOptions ¶
type WriterOptions struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.