linstrom/server/constants.go

24 lines
485 B
Go
Raw Permalink Normal View History

package server
const ContextKeyPasskeyUsername = "context-passkey-username"
type ContextKey string
const (
ContextKeyStorage ContextKey = "Context key for storage"
ContextKeyActorId ContextKey = "Context key for actor id"
)
const (
HttpErrIdPlaceholder = iota
HttpErrIdMissingContextValue
HttpErrIdDbFailure
HttpErrIdNotAuthenticated
2024-10-15 19:26:48 +00:00
HttpErrIdJsonMarshalFail
HttpErrIdBadRequest
HttpErrIdAlreadyExists
HttpErrIdNotFound
2024-11-18 11:18:57 +00:00
HttpErrIdConversionFailure
2024-11-20 12:46:15 +00:00
HttpErrIdNotAllowed
)