Documentation
¶
Index ¶
Constants ¶
View Source
const ( DB = "myevents" USERS = "users" EVENTS = "events" )
Variables ¶
This section is empty.
Functions ¶
func NewMongoDBLayer ¶
func NewMongoDBLayer(connection string) (persistence.DatabaseHandler, error)
Types ¶
type MongoDBLayer ¶
type MongoDBLayer struct {
// contains filtered or unexported fields
}
func (*MongoDBLayer) AddEvent ¶
func (mgoLayer *MongoDBLayer) AddEvent(e persistence.Event) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.