Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Codec ¶ added in v0.5.1
type Codec interface {
EncodeElasticRecords(records []*models.Record) ([]*models.ElasticRecord, error)
}
type Config ¶
type InsertResponse ¶ added in v0.5.3
type InsertResponse struct { AlreadyExists []string Retry []*models.ElasticRecord Backoff bool }
type RecordDatabase ¶
type RecordDatabase interface { Insert(records []*models.ElasticRecord) (*InsertResponse, error) ReadinessCheck() bool // contains filtered or unexported methods }
func NewDatabase ¶
func NewDatabase(logger log.Logger, config Config, metrics metrics.MetricsPublisher) RecordDatabase
type TimeIndexSuffix ¶ added in v0.6.0
type TimeIndexSuffix int
const ( TimeSuffixDay TimeIndexSuffix = 0 TimeSuffixHour TimeIndexSuffix = 1 )
Click to show internal directories.
Click to hide internal directories.