Versions in this module Expand all Collapse all v2 v2.2.0 Nov 23, 2019 Changes in this version + func CHAndPassword(lH string, lS string) bool + func GFromPassword(ls string) string + type TXDBS struct + Client *mongo.Client + Context context.Context + DB *mongo.Database + func Connect(connection, dbname string) (*TXDBS, error) + func (d *TXDBS) Close() + func (sDB *TXDBS) AddAccount(lT *model.Account) *model.Account + func (sDB *TXDBS) AddAuxFun(lT *model.AuxFun) *model.AuxFun + func (sDB *TXDBS) AddClient(lT *model.Client) *model.Client + func (sDB *TXDBS) AddDiagnosis(lT *model.Diagnosis) *model.Diagnosis + func (sDB *TXDBS) AddFault(lT *model.Fault) *model.Fault + func (sDB *TXDBS) AddHost(lT *model.Host) *model.Host + func (sDB *TXDBS) AddIssue(lT *model.Issue) *model.Issue + func (sDB *TXDBS) AddLayout(lT *model.Layout) *model.Layout + func (sDB *TXDBS) AddLocation(lT *model.Location) *model.Location + func (sDB *TXDBS) AddMold(lT *model.Mold) *model.Mold + func (sDB *TXDBS) AddMoldFun(lT *model.MoldFun) *model.MoldFun + func (sDB *TXDBS) AddMonitor(lT *model.Monitor) *model.Monitor + func (sDB *TXDBS) AddNotice(lT *model.Notice) *model.Notice + func (sDB *TXDBS) AddNoticeFun(lT *model.NoticeFun) *model.NoticeFun + func (sDB *TXDBS) AddPPLogs(lT *model.PPLogs) *model.PPLogs + func (sDB *TXDBS) AddPermissions(lT *model.Permissions) *model.Permissions + func (sDB *TXDBS) AddRole(lT *model.Role) *model.Role + func (sDB *TXDBS) AddSignin(lT *model.Signin) *model.Signin + func (sDB *TXDBS) AddStudent(lT *model.Student) *model.Student + func (sDB *TXDBS) AddSurvey(lT *model.Survey) *model.Survey + func (sDB *TXDBS) AddTerminal(lT *model.Terminal) *model.Terminal + func (sDB *TXDBS) AddUniversity(lT *model.University) *model.University + func (sDB *TXDBS) CountAccount() string + func (sDB *TXDBS) CountAuxFun() string + func (sDB *TXDBS) CountClient() string + func (sDB *TXDBS) CountDiagnosis() string + func (sDB *TXDBS) CountFault() string + func (sDB *TXDBS) CountHost() string + func (sDB *TXDBS) CountIssue() string + func (sDB *TXDBS) CountLayout() string + func (sDB *TXDBS) CountLocation() string + func (sDB *TXDBS) CountMold() string + func (sDB *TXDBS) CountMoldFun() string + func (sDB *TXDBS) CountMonitor() string + func (sDB *TXDBS) CountNotice() string + func (sDB *TXDBS) CountNoticeFun() string + func (sDB *TXDBS) CountPPLogs() string + func (sDB *TXDBS) CountPermissions() string + func (sDB *TXDBS) CountRole() string + func (sDB *TXDBS) CountSignin() string + func (sDB *TXDBS) CountStudent() string + func (sDB *TXDBS) CountSurvey() string + func (sDB *TXDBS) CountTerminal() string + func (sDB *TXDBS) CountUniversity() string + func (sDB *TXDBS) DeleteAccount(uid primitive.ObjectID) error + func (sDB *TXDBS) DeleteAuxFun(uid primitive.ObjectID) error + func (sDB *TXDBS) DeleteClient(uid primitive.ObjectID) error + func (sDB *TXDBS) DeleteDiagnosis(uid primitive.ObjectID) error + func (sDB *TXDBS) DeleteFault(uid primitive.ObjectID) error + func (sDB *TXDBS) DeleteHost(uid primitive.ObjectID) error + func (sDB *TXDBS) DeleteIssue(uid primitive.ObjectID) error + func (sDB *TXDBS) DeleteLayout(uid primitive.ObjectID) error + func (sDB *TXDBS) DeleteLocation(uid primitive.ObjectID) error + func (sDB *TXDBS) DeleteMold(uid primitive.ObjectID) error + func (sDB *TXDBS) DeleteMoldFun(uid primitive.ObjectID) error + func (sDB *TXDBS) DeleteMonitor(uid primitive.ObjectID) error + func (sDB *TXDBS) DeleteNotice(uid primitive.ObjectID) error + func (sDB *TXDBS) DeleteNoticeFun(uid primitive.ObjectID) error + func (sDB *TXDBS) DeletePPLogs(uid primitive.ObjectID) error + func (sDB *TXDBS) DeletePermissions(uid primitive.ObjectID) error + func (sDB *TXDBS) DeleteRole(uid primitive.ObjectID) error + func (sDB *TXDBS) DeleteSignin(uid primitive.ObjectID) error + func (sDB *TXDBS) DeleteStudent(uid primitive.ObjectID) error + func (sDB *TXDBS) DeleteSurvey(uid primitive.ObjectID) error + func (sDB *TXDBS) DeleteTerminal(uid primitive.ObjectID) error + func (sDB *TXDBS) DeleteUniversity(uid primitive.ObjectID) error + func (sDB *TXDBS) FindRole(Auth uint) *model.Role + func (sDB *TXDBS) GetAccount() []*model.Account + func (sDB *TXDBS) GetAuxFun() []*model.AuxFun + func (sDB *TXDBS) GetClient() []*model.Client + func (sDB *TXDBS) GetDiagnosis() []*model.Diagnosis + func (sDB *TXDBS) GetFault() []*model.Fault + func (sDB *TXDBS) GetHost() []*model.Host + func (sDB *TXDBS) GetIssue() []*model.Issue + func (sDB *TXDBS) GetLayout() []*model.Layout + func (sDB *TXDBS) GetLocation() []*model.Location + func (sDB *TXDBS) GetMold() []*model.Mold + func (sDB *TXDBS) GetMoldFun() []*model.MoldFun + func (sDB *TXDBS) GetMonitor() []*model.Monitor + func (sDB *TXDBS) GetNotice() []*model.Notice + func (sDB *TXDBS) GetNoticeFun() []*model.NoticeFun + func (sDB *TXDBS) GetPPLogs() []*model.PPLogs + func (sDB *TXDBS) GetPermissions() []*model.Permissions + func (sDB *TXDBS) GetRole() []*model.Role + func (sDB *TXDBS) GetSignin() []*model.Signin + func (sDB *TXDBS) GetStudent() []*model.Student + func (sDB *TXDBS) GetSurvey() []*model.Survey + func (sDB *TXDBS) GetTerminal() []*model.Terminal + func (sDB *TXDBS) GetUniversity() []*model.University + func (sDB *TXDBS) ImportStudent(lA []model.Student) []*model.Student + func (sDB *TXDBS) InitAccount() error + func (sDB *TXDBS) InitAuxFun() error + func (sDB *TXDBS) InitDiagnosis() error + func (sDB *TXDBS) InitHost() error + func (sDB *TXDBS) InitIssue() error + func (sDB *TXDBS) InitLayout() error + func (sDB *TXDBS) InitMold() error + func (sDB *TXDBS) InitMoldFun() error + func (sDB *TXDBS) InitNotice() error + func (sDB *TXDBS) InitNoticeFun() error + func (sDB *TXDBS) InitPermissions() error + func (sDB *TXDBS) InitRole() error + func (sDB *TXDBS) InitSurvey() error + func (sDB *TXDBS) LoginAccount(account string, password string) *model.Account + func (sDB *TXDBS) LoginStudent(SNo string, Password string) *model.Student + func (sDB *TXDBS) LoginTerminal(label string, ip string) *model.Terminal + func (sDB *TXDBS) Signout(uid primitive.ObjectID) error + func (sDB *TXDBS) UpdateAccount(lT *model.Account) *model.Account + func (sDB *TXDBS) UpdateAccountPassword(lT *model.Account) *model.Account + func (sDB *TXDBS) UpdateAuxFun(lT *model.AuxFun) *model.AuxFun + func (sDB *TXDBS) UpdateClient(lT *model.Client) *model.Client + func (sDB *TXDBS) UpdateDiagnosis(lT *model.Diagnosis) *model.Diagnosis + func (sDB *TXDBS) UpdateFault(lT *model.Fault) *model.Fault + func (sDB *TXDBS) UpdateHost(lT *model.Host) *model.Host + func (sDB *TXDBS) UpdateIssue(lT *model.Issue) *model.Issue + func (sDB *TXDBS) UpdateLayout(lT *model.Layout) *model.Layout + func (sDB *TXDBS) UpdateLocation(lT *model.Location) *model.Location + func (sDB *TXDBS) UpdateMold(lT *model.Mold) *model.Mold + func (sDB *TXDBS) UpdateMoldFun(lT *model.MoldFun) *model.MoldFun + func (sDB *TXDBS) UpdateMonitor(lT *model.Monitor) *model.Monitor + func (sDB *TXDBS) UpdateNotice(lT *model.Notice) *model.Notice + func (sDB *TXDBS) UpdateNoticeFun(lT *model.NoticeFun) *model.NoticeFun + func (sDB *TXDBS) UpdatePPLogs(lT *model.PPLogs) *model.PPLogs + func (sDB *TXDBS) UpdatePermissions(lT *model.Permissions) *model.Permissions + func (sDB *TXDBS) UpdateRole(lT *model.Role) *model.Role + func (sDB *TXDBS) UpdateStudent(lT *model.Student) *model.Student + func (sDB *TXDBS) UpdateSurvey(lT *model.Survey) *model.Survey + func (sDB *TXDBS) UpdateTerminal(lT *model.Terminal) *model.Terminal + func (sDB *TXDBS) UpdateUniversity(lT *model.University) *model.University