Documentation ¶
Index ¶
- type Database
- type Mongodb
- 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database interface { Entries(context.Context) ([]interface{}, error) EntriesMinutesAgo(context.Context, int, *options.FindOptions) (interface{}, error) AddEntry(context.Context, interface{}) error DeleteAll(context.Context, string) error DatabaseCollection(string, string) Disconnect(context.Context) error }
Click to show internal directories.
Click to hide internal directories.