Documentation ¶
Index ¶
- func CreateAdminUser(db *db.Database)
- func CreateAnonymousUser(db *db.Database)
- func CreateForeignKeys(db *db.Database)
- func CreateSampleData(database *db.Database)
- func CreateTables(db *db.Database)
- func DropTables(db *db.Database)
- func MysqlRealEscapeString(value string) string
- func NewDatabaseProblemRepo(database *db.Database) domain.ProblemRepo
- func NewDatabaseProblemTagRepo(database *db.Database) domain.ProblemTagRepo
- func NewDatabaseSchoolRepo(database *db.Database) domain.SchoolRepo
- func NewDatabaseUserActionRepo(database *db.Database) domain.UserActionRepo
- func NewDatabaseUserProblemAttemptRepo(database *db.Database) domain.UserProblemAttemptRepo
- func NewDatabaseUserRepo(database *db.Database) domain.UserRepo
- func NewExpandedUserProblemAttemptRepo(database *db.Database) domain.ExpandedUserProblemAttemptRepo
- func RefreshViews(db *db.Database)
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAdminUser ¶
func CreateAnonymousUser ¶
func CreateForeignKeys ¶
func CreateSampleData ¶
func CreateTables ¶
func DropTables ¶
func MysqlRealEscapeString ¶
func NewDatabaseProblemRepo ¶
func NewDatabaseProblemRepo(database *db.Database) domain.ProblemRepo
func NewDatabaseProblemTagRepo ¶
func NewDatabaseProblemTagRepo(database *db.Database) domain.ProblemTagRepo
func NewDatabaseSchoolRepo ¶
func NewDatabaseSchoolRepo(database *db.Database) domain.SchoolRepo
func NewDatabaseUserActionRepo ¶
func NewDatabaseUserActionRepo(database *db.Database) domain.UserActionRepo
func NewDatabaseUserProblemAttemptRepo ¶
func NewDatabaseUserProblemAttemptRepo(database *db.Database) domain.UserProblemAttemptRepo
func NewExpandedUserProblemAttemptRepo ¶
func NewExpandedUserProblemAttemptRepo(database *db.Database) domain.ExpandedUserProblemAttemptRepo
func RefreshViews ¶
Types ¶
type Logger ¶
type Logger interface { LogUserAction(userID uint, description string, statusCode int, method string, resource string) error LogUserActionAtTime(userID uint, actionTime time.Time, description string, statusCode int, method string, resource string) error LogAnonymousAction(description string, statusCode int, method string, resource string) error LogAnonymousActionAtTime(actionTime time.Time, description string, statusCode int, method string, resource string) error }
To log user's actions
Click to show internal directories.
Click to hide internal directories.