Versions in this module Expand all Collapse all v0 v0.1.1 Jun 25, 2026 v0.1.0 Jun 25, 2026 Changes in this version + type Bucket string + const Daily + const Hourly + type Count struct + Count int + Key string + type Dashboard struct + DAU int + TopEvents []Count + TotalEvents int + WAU int + type Event struct + AnonID string + Name string + Properties map[string]any + Timestamp time.Time + UserID string + type FunnelStep struct + Conversion float64 + Count int + Event string + type RetentionRow struct + OffsetDays int + Returned int + type Service struct + func FromKernel(k *togo.Kernel) (*Service, bool) + func New(store Store) *Service + func (s *Service) ActiveUsers(from, to time.Time) int + func (s *Service) DashboardSummary(days int) Dashboard + func (s *Service) Funnel(steps []string, from, to time.Time) []FunnelStep + func (s *Service) Identify(userID string, traits map[string]any) + func (s *Service) Retention(from time.Time, offsets []int) []RetentionRow + func (s *Service) TopEvents(from, to time.Time, limit int) []Count + func (s *Service) TopProperties(event, prop string, from, to time.Time, limit int) []Count + func (s *Service) Track(ctx context.Context, e Event) + func (s *Service) Traits(userID string) map[string]any + func (s *Service) Volume(name string, from, to time.Time, b Bucket) []VolumePoint + type Store interface + Append func(Event) + Range func(from, to time.Time) []Event + type VolumePoint struct + Count int + Time time.Time