Documentation ¶
Index ¶
- type ByLearned
- type QueryRepo
- type Repo
- func (r *Repo) FetchDictionary(collectionName string, query bson.M) (interface{}, error)
- func (r *Repo) FetchWord(collectionName string, objectId bson.ObjectId) (entity.Word, error)
- func (r *Repo) FilterDictionary(limit int) (interface{}, error)
- func (r *Repo) SetDb(db *mgo.Database)
- func (r *Repo) UpdateWord(collectionName string, objectId bson.ObjectId, data interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QueryRepo ¶
type QueryRepo interface { SetDb(db *mgo.Database) FetchWord(collectionName string, objectId bson.ObjectId) (entity.Word, error) FetchDictionary(collectionName string, query bson.M) (interface{}, error) FilterDictionary(limit int) (interface{}, error) UpdateWord(collectionName string, objectId bson.ObjectId, data interface{}) error }
func CreateRepo ¶
func CreateRepo(mgoDb *mgo.Database) QueryRepo
type Repo ¶
type Repo struct { Db *mgo.Database // contains filtered or unexported fields }
func (*Repo) FetchDictionary ¶
func (*Repo) FilterDictionary ¶
Click to show internal directories.
Click to hide internal directories.