Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consumer ¶
type Consumer struct { Log *zap.Logger Repo TimeseriesRepo }
func (*Consumer) ConsumeClaim ¶
func (h *Consumer) ConsumeClaim(s sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error
type TimeseriesRepo ¶
type TimeseriesRepo interface { CreateDataPoint(ctx context.Context, datapoint *DataPoint) error ReadExistingDatapoint(ctx context.Context, deviceID string) (float32, error) }
func NewTimescaleRepo ¶
func NewTimescaleRepo(log *zap.Logger, connection string) (result TimeseriesRepo, err error)
Click to show internal directories.
Click to hide internal directories.