Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MongoDB ¶
type MongoDB struct { Session *mongo.Client Users *mongo.Collection DeletedUsers *mongo.Collection Income *mongo.Collection DeletedIncome *mongo.Collection Cost *mongo.Collection DeletedCost *mongo.Collection IncomeHistory *mongo.Collection CostHistory *mongo.Collection }
func ConnectMongoDB ¶
func ConnectMongoDB(cfg *utils.ServerConfig) *MongoDB
ConnectDB will build connection to MongoDB Atlas
func (*MongoDB) CreateUserFromGoth ¶
CreateUserFromGoth using data from goth to create user
func (*MongoDB) FindUserByAPIKey ¶
FindUserByAPIKey will find user related to the APIKey
Click to show internal directories.
Click to hide internal directories.