Documentation ¶
Index ¶
- Variables
- type StoreRequest
- type Warehouse
- func (s *Warehouse) AttachMetrics(m *metrics.Metrics)
- func (s *Warehouse) Close(ctx context.Context)
- func (s *Warehouse) Run(ctx context.Context, datadir string, id int)
- func (s *Warehouse) RunParallel(ctx context.Context, datadir string, numWorkers int) error
- func (s *Warehouse) StoreAsync(ctx context.Context, req StoreRequest) error
- type WarehouseMetrics
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrClosed = errors.New("closed")
)
View Source
var (
ErrUnknownType = errors.New("unknown data type")
)
Functions ¶
This section is empty.
Types ¶
type StoreRequest ¶
type StoreRequest struct { DataType string Data []byte Slot uint64 Id string Timestamp time.Time // contains filtered or unexported fields }
func (StoreRequest) Loggable ¶
func (req StoreRequest) Loggable() map[string]any
type Warehouse ¶
type Warehouse struct {
// contains filtered or unexported fields
}
func (*Warehouse) AttachMetrics ¶
func (*Warehouse) RunParallel ¶
func (*Warehouse) StoreAsync ¶
func (s *Warehouse) StoreAsync(ctx context.Context, req StoreRequest) error
type WarehouseMetrics ¶
type WarehouseMetrics struct { Writes *prometheus.CounterVec FailedWrites *prometheus.CounterVec }
Click to show internal directories.
Click to hide internal directories.