Documentation ¶
Index ¶
- type Storage
- func (storage *Storage) Close()
- func (storage *Storage) CreateData(data any) (bool, string, error)
- func (storage *Storage) DeleteData(id string) (bool, string, error)
- func (storage *Storage) ReadData(filter bson.M) ([]bson.M, error)
- func (storage *Storage) UpdateData(id string, data any) (bool, string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct { Client *mongo.Client Database *mongo.Database Collection *mongo.Collection Ctx context.Context Cancel context.CancelFunc }
func NewStorage ¶
Click to show internal directories.
Click to hide internal directories.