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