infrastruct

package
v0.0.0-...-cb83cae Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2017 License: MIT Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL