Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotReady = errors.New("TSDB not ready")
ErrNotReady is returned if the underlying storage is not ready yet.
Functions ¶
Types ¶
type Options ¶
type Options struct { // The interval at which the write ahead log is flushed to disc. WALFlushInterval time.Duration // The timestamp range of head blocks after which they get persisted. // It's the minimum duration of any persisted block. MinBlockDuration model.Duration // The maximum timestamp range of compacted blocks. MaxBlockDuration model.Duration // Duration for how long to retain data. Retention model.Duration // Disable creation and consideration of lockfile. NoLockfile bool }
Options of the DB storage.
type ReadyStorage ¶
type ReadyStorage struct {
// contains filtered or unexported fields
}
ReadyStorage implements the Storage interface while allowing to set the actual storage at a later point in time.
func (*ReadyStorage) Appender ¶
func (s *ReadyStorage) Appender() (storage.Appender, error)
Appender implements the Storage interface.
func (*ReadyStorage) Close ¶
func (s *ReadyStorage) Close() error
Close implements the Storage interface.
Click to show internal directories.
Click to hide internal directories.