Versions in this module Expand all Collapse all v0 v0.0.2 Jan 14, 2023 v0.0.1 Aug 9, 2022 Changes in this version + type Database interface + AddEntry func(context.Context, interface{}) error + DatabaseCollection func(string, string) + DeleteAll func(context.Context, string) error + Disconnect func(context.Context) error + Entries func(context.Context) ([]interface{}, error) + EntriesMinutesAgo func(context.Context, int, *options.FindOptions) (interface{}, error) + type Mongodb struct + Collection string + Conn *mongo.Client + Database string + func (m *Mongodb) AddEntry(ctx context.Context, e interface{}) error + func (m *Mongodb) DatabaseCollection(database string, collection string) + func (m *Mongodb) DeleteAll(ctx context.Context, message string) error + func (m *Mongodb) Disconnect(ctx context.Context) error + func (m *Mongodb) Entries(ctx context.Context) ([]interface{}, error) + func (m *Mongodb) EntriesMinutesAgo(ctx context.Context, minutes int, opts *options.FindOptions) (interface{}, error)