Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IMongoClient ¶
type IMongoClient interface { OpenMongoDB() QueryTopic(topicID string) (model.Topic, error) Seed() }
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) QueryTopic ¶
func (m *MockMongoClient) QueryTopic(topicID string) (model.Topic, 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
func (*MongoClient) QueryTopic ¶
func (mc *MongoClient) QueryTopic(topicID string) (model.Topic, error)
func (*MongoClient) Seed ¶
func (mc *MongoClient) Seed()
Seed creates a bunch of fake topics for fun
Click to show internal directories.
Click to hide internal directories.