Documentation
¶
Index ¶
- Constants
- func CreateHTTPHandlers(server *handle.Server) (*http.ServeMux, error)
- func HTTPEmailLinkCreate(s *handle.Server) http.Handler
- func HTTPJWTCreate(s *handle.Server) http.Handler
- func HTTPJWTValidate(s *handle.Server) http.Handler
- func HTTPLinkCreate(s *handle.Server) http.Handler
- func HTTPReady(_ *handle.Server) http.Handler
- func HTTPServiceAccountCreate(s *handle.Server) http.Handler
- type Validatable
Constants ¶
View Source
const ( // PathEmailLinkCreate is the path to the email link creation endpoint. PathEmailLinkCreate = "email-link/create" // PathJWKS is the path to the JWKS endpoint. PathJWKS = "jwks.json" // PathJWTCreate is the path to the JWT creation endpoint. PathJWTCreate = "jwt/create" // PathJWTValidate is the path to the JWT validation endpoint. PathJWTValidate = "jwt/validate" // PathLinkCreate is the path to the link creation endpoint. PathLinkCreate = "link/create" // PathReady is the path to the ready endpoint. PathReady = "ready" // PathServiceAccountCreate is the path to the service account creation endpoint. PathServiceAccountCreate = "admin/service-account/create" )
Variables ¶
This section is empty.
Functions ¶
func CreateHTTPHandlers ¶
CreateHTTPHandlers creates the HTTP handlers for the server.
func HTTPEmailLinkCreate ¶
HTTPEmailLinkCreate creates an HTTP handler for the HandleEmailLinkCreate method.
func HTTPJWTCreate ¶
HTTPJWTCreate creates an HTTP handler for the HandleJWTCreate method.
func HTTPJWTValidate ¶
HTTPJWTValidate creates an HTTP handler for the HandleJWTValidate method.
func HTTPLinkCreate ¶
HTTPLinkCreate creates an HTTP handler for the HandleLinkCreate method.
Types ¶
type Validatable ¶
type Validatable[T any] interface { Validate(s model.Validation) (T, error) }
Validatable is an interface for validating a model.
Click to show internal directories.
Click to hide internal directories.