Versions in this module Expand all Collapse all v0 v0.0.1 Dec 22, 2023 Changes in this version + type Accumulator interface + Add func(T) (string, error) + Cancel func(string) error + Start func() error + func New[T any](cnf Config[T]) Accumulator[T] + type Adder func(T) (string, error) + type Config struct + Interval time.Duration + Processor ProcessorFunc[T] + StartTime time.Time + Storage DataStorage[Data[T]] + type Data struct + ID string + Original T + type DataStorage interface + Load func() ([]T, error) + Save func(data []T) error + type InMemoryStorage struct + func NewInMemoryStorage[T any]() *InMemoryStorage[T] + func (s *InMemoryStorage[T]) Load() ([]Data[T], error) + func (s *InMemoryStorage[T]) Save(data []Data[T]) error + type ProcessorFunc func(data []T)