Versions in this module Expand all Collapse all v1 v1.0.0 May 31, 2022 Changes in this version + func Close() + func CreateIndex() + type Alga struct + Annotations []primitive.ObjectID + Name string + River primitive.ObjectID + Src string + type Annotation struct + Description string + Format string + Url string + type Mgo struct + func (m *Mgo) CheckOperator(email, password string) (*Operator, error) + func (m *Mgo) DropAlga(name string) error + func (m *Mgo) DropOperator(email string) error + func (m *Mgo) DropRiver(name string) error + func (m *Mgo) ExistsOperator(email string) bool + func (m *Mgo) ExistsRiver(name string) bool + func (m *Mgo) InsertAlga(obj *Alga) (interface{}, error) + func (m *Mgo) InsertAnnotation(obj *Annotation) (interface{}, error) + func (m *Mgo) InsertOperator(obj *Operator) error + func (m *Mgo) InsertRiver(r *River) error + func (m *Mgo) QueryAlgaByKey(key string) ([]*Alga, error) + func (m *Mgo) QueryAlgaByName(name string) (*Alga, error) + func (m *Mgo) QueryAlgae() ([]*Alga, error) + func (m *Mgo) QueryAnnotationById(obj primitive.ObjectID) *Annotation + func (m *Mgo) QueryOperatorByEmail(email string) (*Operator, error) + func (m *Mgo) QueryOperators() ([]*Operator, error) + func (m *Mgo) QueryRiverById(obj primitive.ObjectID) River + func (m *Mgo) QueryRiverByName(obj string) River + func (m *Mgo) QueryRivers() ([]*River, error) + func (m *Mgo) UpdateAlga(id primitive.ObjectID, annotations []primitive.ObjectID) error + func (m *Mgo) UpdateOperator(id primitive.ObjectID, annotations []primitive.ObjectID) error + func (m *Mgo) UpdatePassword(email string, newPassword string) error + func (m *Mgo) UpdateRiver(id primitive.ObjectID, algae []primitive.ObjectID) error + func (m *Mgo) UpsertAnnotation(obj *Annotation) error + func (m *Mgo) UpsertOperator(email, name, password string, access int) error + type Operator struct + Access int + Annotations []primitive.ObjectID + Email string + Name string + Password string + type River struct + Address string + Algae []primitive.ObjectID + Name string v1.0.0-beta Jun 9, 2022