Documentation ¶
Index ¶
- Constants
- type ConferenceStorageModel
- type DatabaseClient
- type MongoClient
- func (client *MongoClient) CreateConference(conference *ConferenceStorageModel) error
- func (client *MongoClient) GetConference(uniqueName string) (*ConferenceStorageModel, error)
- func (client *MongoClient) GetConferences() ([]*ConferenceStorageModel, error)
- func (client *MongoClient) UpdateConference(conference *ConferenceStorageModel) error
Constants ¶
View Source
const ( DATABASE = "conferences" COLLECTION = "conferences" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConferenceStorageModel ¶
type DatabaseClient ¶
type DatabaseClient interface { GetConference(uniqueName string) (*ConferenceStorageModel, error) GetConferences() ([]*ConferenceStorageModel, error) UpdateConference(conference *ConferenceStorageModel) error CreateConference(conference *ConferenceStorageModel) error }
type MongoClient ¶
type MongoClient struct {
// contains filtered or unexported fields
}
func New ¶
func New(mongoServerUrl string) (*MongoClient, error)
func (*MongoClient) CreateConference ¶
func (client *MongoClient) CreateConference(conference *ConferenceStorageModel) error
func (*MongoClient) GetConference ¶
func (client *MongoClient) GetConference(uniqueName string) (*ConferenceStorageModel, error)
func (*MongoClient) GetConferences ¶
func (client *MongoClient) GetConferences() ([]*ConferenceStorageModel, error)
func (*MongoClient) UpdateConference ¶
func (client *MongoClient) UpdateConference(conference *ConferenceStorageModel) error
Click to show internal directories.
Click to hide internal directories.