Documentation ¶
Index ¶
Constants ¶
View Source
const DatabaseName = "bowa"
Variables ¶
View Source
var ( ErrFailedCreatingDBClient = errors.New("failed creating a DB client") ErrFailedConnecting = errors.New("failed connecting to the DB") )
Functions ¶
This section is empty.
Types ¶
type Access ¶
type Access struct {
// contains filtered or unexported fields
}
func NewDBAccess ¶
NewDBAccess creates a new DBAccess, connect to the database
func (*Access) Collection ¶
func (a *Access) Collection(name string) *mongo.Collection
func (*Access) CreateIndexes ¶
Click to show internal directories.
Click to hide internal directories.