Documentation ¶
Index ¶
- func CreateComponent(component types.Component) (*mongo.InsertOneResult, error)
- func DeleteFromID(collection string, id primitive.ObjectID) (*mongo.DeleteResult, error)
- func Ping(uri string) (bson.M, error)
- func ReadAll(collection string) ([]*bson.M, error)
- func ReadFromID(collection string, id primitive.ObjectID) (bson.M, error)
- func UpdateFromID(collection string, id primitive.ObjectID, data bson.D) (*mongo.UpdateResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateComponent ¶ added in v0.9.1
func CreateComponent(component types.Component) (*mongo.InsertOneResult, error)
func DeleteFromID ¶
func UpdateFromID ¶ added in v0.9.1
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.