mstar
a653477e7f
This time mainly helper functions for converting an account and associated types into their API representation
22 lines
463 B
Go
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
|
|
)
|