Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoHandler ¶
type MongoHandler struct {
Session *mgo.Session
}
func NewMongoHandler ¶
func NewMongoHandler(connString string) *MongoHandler
func (*MongoHandler) GetAll ¶
func (handler *MongoHandler) GetAll() ([]map[string]interface{}, error)
func (*MongoHandler) GetByTitle ¶
func (handler *MongoHandler) GetByTitle(title string) (map[string]interface{}, error)
func (*MongoHandler) Save ¶
func (handler *MongoHandler) Save(doc interface{}) error
Click to show internal directories.
Click to hide internal directories.