initial commit
This commit is contained in:
8
pkg/contexts/currentuser.go
Normal file
8
pkg/contexts/currentuser.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package contexts
|
||||
|
||||
import (
|
||||
"git.haelnorr.com/h/golib/hwsauth"
|
||||
"git.haelnorr.com/h/oslstats/internal/db"
|
||||
)
|
||||
|
||||
var CurrentUser hwsauth.ContextLoader[*db.User]
|
||||
7
pkg/contexts/keys.go
Normal file
7
pkg/contexts/keys.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package contexts
|
||||
|
||||
type contextKey string
|
||||
|
||||
func (c contextKey) String() string {
|
||||
return "oslstats context key " + string(c)
|
||||
}
|
||||
Reference in New Issue
Block a user