probo/pkg/store/file/defaults.go

50 lines
1.2 KiB
Go
Raw Normal View History

2023-11-20 14:14:09 +01:00
package file
import "path/filepath"
var (
DefaultBaseDir = "data"
DefaultQuizzesSubdir = "quizzes"
DefaultCollectionsSubdir = "collections"
DefaultParticipantsSubdir = "participants"
2023-11-21 15:12:13 +01:00
DefaultGroupsSubdir = "groups"
2023-11-28 16:19:49 +01:00
DefaultExamsSubdir = "exams"
2023-12-11 09:32:50 +01:00
DefaultResponsesSubdir = "responses"
2023-12-12 09:21:55 +01:00
DefaultSessionSubdir = "sessions"
2023-12-17 18:56:20 +01:00
Dirs = []string{
GetDefaultQuizzesDir(),
GetDefaultParticipantsDir(),
GetDefaultExamsDir(),
GetDefaultSessionDir(),
}
2023-11-20 14:14:09 +01:00
)
func GetDefaultQuizzesDir() string {
return filepath.Join(DefaultBaseDir, DefaultQuizzesSubdir)
}
func GetDefaultCollectionsDir() string {
return filepath.Join(DefaultBaseDir, DefaultCollectionsSubdir)
}
func GetDefaultParticipantsDir() string {
return filepath.Join(DefaultBaseDir, DefaultParticipantsSubdir)
}
2023-11-21 15:12:13 +01:00
func GetDefaultGroupsDir() string {
return filepath.Join(DefaultBaseDir, DefaultGroupsSubdir)
}
2023-11-28 16:19:49 +01:00
func GetDefaultExamsDir() string {
return filepath.Join(DefaultBaseDir, DefaultExamsSubdir)
}
2023-12-11 09:32:50 +01:00
2023-12-12 09:21:55 +01:00
func GetDefaultSessionDir() string {
return filepath.Join(DefaultBaseDir, DefaultSessionSubdir)
}
2023-12-11 09:32:50 +01:00
func GetDefaultResponsesDir() string {
return filepath.Join(DefaultBaseDir, DefaultResponsesSubdir)
}