Documentation ¶
Index ¶
Constants ¶
View Source
const ( AdminUserID int32 = -1 AdminExamID int32 = -1 )
Variables ¶
View Source
var ( ErrAdminRequired = errors.New("admin privilege required") ErrAuthRequired = errors.New("authentication required") )
Functions ¶
func CheckAdmin ¶
func CheckAuthentication ¶
func GenerateRandomPasscode ¶
Types ¶
type ContextKey ¶
type ContextKey string
const ( IsAdminContextKey ContextKey = "is-admin" UserIDContextKey ContextKey = "user-id" ExamIDContextKey ContextKey = "exam-id" )
type Service ¶
Click to show internal directories.
Click to hide internal directories.