Documentation ¶
Index ¶
- Variables
- type MongoDBConnector
- func (c *MongoDBConnector) DeleteDoorman(id bson.ObjectId) error
- func (c *MongoDBConnector) Exists(wab *doormen.DoormanDefinition) bool
- func (c *MongoDBConnector) ExistsId(id bson.ObjectId) bool
- func (c *MongoDBConnector) GetAllDoormen() <-chan *doormen.DoormanId
- func (c *MongoDBConnector) GetDoorman(id bson.ObjectId) (*doormen.DoormanDefinition, error)
- func (c *MongoDBConnector) Save(wab *doormen.DoormanDefinition) error
- func (c *MongoDBConnector) Update(wab *doormen.DoormanDefinition) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *mgo.Database
Functions ¶
This section is empty.
Types ¶
type MongoDBConnector ¶
type MongoDBConnector struct {
Collection *mgo.Collection
}
func NewMongoDBConnector ¶
func NewMongoDBConnector() (*MongoDBConnector, error)
func (*MongoDBConnector) DeleteDoorman ¶
func (c *MongoDBConnector) DeleteDoorman(id bson.ObjectId) error
func (*MongoDBConnector) Exists ¶
func (c *MongoDBConnector) Exists(wab *doormen.DoormanDefinition) bool
func (*MongoDBConnector) GetAllDoormen ¶
func (c *MongoDBConnector) GetAllDoormen() <-chan *doormen.DoormanId
func (*MongoDBConnector) GetDoorman ¶
func (c *MongoDBConnector) GetDoorman(id bson.ObjectId) (*doormen.DoormanDefinition, error)
func (*MongoDBConnector) Save ¶
func (c *MongoDBConnector) Save(wab *doormen.DoormanDefinition) error
func (*MongoDBConnector) Update ¶
func (c *MongoDBConnector) Update(wab *doormen.DoormanDefinition) error
Click to show internal directories.
Click to hide internal directories.