Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MongoConnection = connectionToDB()
MongoConnection connects with MongoDB
Functions ¶
func CheckMongoDBConnection ¶
func CheckMongoDBConnection() bool
CheckMongoDBConnection validates connection with DB
Types ¶
type CreateLanguageInput ¶
type CreateLanguageInput struct { Name string `bson:"name" json:"name" binding:"required"` Creator string `bson:"creator" json:"creator" binding:"required"` }
CreateLanguageInput handles creation of language-structure
type Language ¶
type Language struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"id"` Name string `bson:"name" json:"name"` Creator string `bson:"creator" json:"creator"` }
Language handles language-model-structure
type UpdateLanguageInput ¶
type UpdateLanguageInput struct { Name string `bson:"name" json:"name"` Creator string `bson:"creator" json:"creator"` }
UpdateLanguageInput handles updating of language-structure
Click to show internal directories.
Click to hide internal directories.