2024-10-15 14:16:18 +00:00
|
|
|
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
|
2024-10-15 18:41:23 +00:00
|
|
|
HttpErrIdNotAuthenticated
|
2024-10-15 19:26:48 +00:00
|
|
|
HttpErrIdJsonMarshalFail
|
2024-10-20 18:05:13 +00:00
|
|
|
HttpErrIdBadRequest
|
|
|
|
HttpErrIdAlreadyExists
|
|
|
|
HttpErrIdNotFound
|
2024-11-18 11:18:57 +00:00
|
|
|
HttpErrIdConversionFailure
|
2024-11-20 12:46:15 +00:00
|
|
|
HttpErrIdNotAllowed
|
2024-10-15 14:16:18 +00:00
|
|
|
)
|