Documentation ¶
Index ¶
- func FindAll(db, collection string, query, selector, result interface{}) error
- func FindOne(db, collection string, query, selector, result interface{}) error
- func Insert(db, collection string, docs ...interface{}) error
- func IsExist(db, collection string, query interface{}) bool
- func Remove(db, collection string, query interface{}) error
- func Update(db, collection string, query, update interface{}) error
- type JwtToken
- type Movies
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Movies ¶
type Movies struct { Id bson.ObjectId `bson:"_id" json:"id"` Name string `bson:"name" json:"name"` CoverImage string `bson:"cover_image" json:"cover_image"` Description string `bson:"description" json:"description"` }
func (*Movies) FindAllMovies ¶
func (*Movies) InsertMovie ¶
func (*Movies) RemoveMovie ¶
func (*Movies) UpdateMovie ¶
Click to show internal directories.
Click to hide internal directories.