Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IMongoClient ¶
IMongoClient is an interface for Mongo
type MockMongoClient ¶
MockMongoClient is a mock implementation of a datastore client for testing purposes.
func (*MockMongoClient) OpenMongoDB ¶
func (m *MockMongoClient) OpenMongoDB()
func (*MockMongoClient) QueryRoom ¶
func (m *MockMongoClient) QueryRoom(roomID string) (model.Room, error)
func (*MockMongoClient) Seed ¶
func (m *MockMongoClient) Seed()
type MongoClient ¶
type MongoClient struct {
// contains filtered or unexported fields
}
MongoClient defines a mongo session
func (*MongoClient) OpenMongoDB ¶
func (mc *MongoClient) OpenMongoDB()
OpenMongoDB provides a connection to a mongoDB instance
Click to show internal directories.
Click to hide internal directories.