Documentation ¶
Index ¶
- Variables
- func AddClient(client models.Client) error
- func AddClientFields(field models.Field) error
- func AddTemplate(template models.Template) error
- func AddUser(user models.User) error
- func DeleteClientById(id uint) error
- func DeleteClientField(key string) error
- func DeleteJob(id uint) error
- func DeleteTemplate(id string) error
- func DeleteUser(userId int) error
- func GetActiveJobs() ([]models.Job, error)
- func GetAllUsers() ([]models.User, error)
- func GetAuditLog(id uint) ([]models.Audit, error)
- func GetClientById(id uint) (models.Client, error)
- func GetClientByIdUserId(clientId string, userId int) (models.Client, error)
- func GetClientByMailId(mailId string) (models.Client, error)
- func GetClientByUserIdMailId(clientMailId string, userId int) (models.Client, error)
- func GetClientFields(id uint) ([]models.Field, error)
- func GetClientsByUserId(id int) ([]models.Client, error)
- func GetJob(id uint) (models.Job, error)
- func GetPendingJobs() ([]models.Job, error)
- func GetTemplate(id uint) (models.Template, error)
- func GetTemplateById(id uint, userId int) (models.Template, error)
- func GetTemplateByName(id string, userId int) (models.Template, error)
- func GetTemplateByUserId(userId int) ([]models.Template, error)
- func GetUserById(id int) (models.User, error)
- func GetUserByName(name string) (models.User, error)
- func IfUsersCurrentSession(uuid interface{}) bool
- func InvalidateAllSessions(userID int)
- func InvalidateCurrentSession(userID int, uuid interface{})
- func SaveAuditLog(audit models.Audit) error
- func SaveUserAuth(auth models.Auth) error
- func ScheduleJob(job models.Job) (models.Job, error)
- func UpdateClientById(id uint, clientDetails models.Client) error
- func UpdateJobStatus(id uint, status string) error
- func UpdateTemplate(id uint, template models.Template) error
- func UpdateUserCounter(user models.User, count int) error
- func UpdateUserDetails(user models.User) error
- func UpdateUserPassword(userId int, hashPwd string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
func AddClientFields ¶
func AddTemplate ¶
func DeleteClientById ¶
func DeleteClientField ¶
func DeleteTemplate ¶
func DeleteUser ¶
func GetActiveJobs ¶
func GetAllUsers ¶
func GetClientByIdUserId ¶
func GetClientByUserIdMailId ¶
func GetPendingJobs ¶
func IfUsersCurrentSession ¶
func IfUsersCurrentSession(uuid interface{}) bool
func InvalidateAllSessions ¶
func InvalidateAllSessions(userID int)
func InvalidateCurrentSession ¶
func InvalidateCurrentSession(userID int, uuid interface{})
func SaveAuditLog ¶
func SaveUserAuth ¶
func UpdateJobStatus ¶
func UpdateUserDetails ¶
func UpdateUserPassword ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.