Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collections ¶
type Collections struct {
// contains filtered or unexported fields
}
Collections represents all needed db collections
type Config ¶
type Config struct { ConnectionURI string `yaml:"connection_uri"` DatabaseName string `yaml:"database_name"` }
Config represents MongoDB configuration
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB represents the structure of the database
func NewConnection ¶
NewConnection creates a new database connection
func (*DB) CloseConnection ¶
CloseConnection closes the database connection
func (*DB) DeleteUser ¶
DeleteUser deletes the user with the given id
func (*DB) GetUserByEmail ¶
GetUserByEmail returns a user by his email address
Click to show internal directories.
Click to hide internal directories.