linstrom/server/constants.go
mstar a653477e7f More API progress
This time mainly helper functions for converting an account and
associated types into their API representation
2024-11-04 07:48:46 +01:00

22 lines
463 B
Go

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
HttpErrIdJsonMarshalFail
HttpErrIdBadRequest
HttpErrIdAlreadyExists
HttpErrIdNotFound
HttpErrIdConverionFailure
)