Versions in this module Expand all Collapse all v0 v0.14.2 Feb 26, 2024 v0.14.1 Feb 25, 2024 Changes in this version + const AutoHandle + const DayHandle + const HourHandle + const MinuteHandle + const MonthHandle + const YearHandle + type EventName string + type HandleData struct + Count int + Documents []SystemEvent + Timestamp time.Time + type Statistic struct + func New(collection string, database *mongodata.MongoDB) *Statistic + func (s *Statistic) Get(ctx context.Context, name EventName, start, end time.Time, h handle, doc bool, ...) ([]HandleData, error) + func (s *Statistic) Many(ctx context.Context, count int, ...) error + func (s *Statistic) Send(ctx context.Context, owner primitive.ObjectID, event EventName, ...) error + type SystemEvent struct + Data map[string]interface{} + ID primitive.ObjectID + Name EventName + Owner primitive.ObjectID + Timestamp time.Time