mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Reorg
This commit is contained in:
12
pkg/api/context_keys.go
Normal file
12
pkg/api/context_keys.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package api
|
||||
|
||||
// https://stackoverflow.com/questions/40891345/fix-should-not-use-basic-type-string-as-key-in-context-withvalue-golint
|
||||
|
||||
type key int
|
||||
|
||||
const (
|
||||
galleryKey key = 0
|
||||
performerKey key = 1
|
||||
sceneKey key = 2
|
||||
studioKey key = 3
|
||||
)
|
||||
Reference in New Issue
Block a user