network

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PathJWKS is the path to the JWKS endpoint.
	PathJWKS = "jwks.json"
	// 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"
	// PathJWTCreate is the path to the JWT creation endpoint.
	PathJWTCreate = "jwt/create"
	// PathJWTValidate is the path to the JWT validation endpoint.
	PathJWTValidate = "jwt/validate"
	// PathMagicLinkCreate is the path to the link creation endpoint.
	PathMagicLinkCreate = "magic-link/create"
	// PathMagicLinkEmailCreate is the path to the magic link email creation endpoint.
	PathMagicLinkEmailCreate = "magic-link-email/create"
	// PathOTPCreate is the path to the OTP creation endpoint.
	PathOTPCreate = "otp/create"
	// PathOTPValidate is the path to the OTP validation endpoint.
	PathOTPValidate = "otp/validate"
	// PathOTPEmailCreate is the path to the OTP email creation endpoint.
	PathOTPEmailCreate = "otp-email/create"
)

Variables

This section is empty.

Functions

func CreateHTTPHandlers

func CreateHTTPHandlers(server *handle.Server) (*http.ServeMux, error)

CreateHTTPHandlers creates the HTTP handlers for the server.

func HTTPJWTCreate

func HTTPJWTCreate(s *handle.Server) http.Handler

HTTPJWTCreate creates an HTTP handler for the HandleJWTCreate method.

func HTTPJWTValidate

func HTTPJWTValidate(s *handle.Server) http.Handler

HTTPJWTValidate creates an HTTP handler for the HandleJWTValidate method.

func HTTPMagicLinkCreate added in v0.6.0

func HTTPMagicLinkCreate(s *handle.Server) http.Handler

HTTPMagicLinkCreate creates an HTTP handler for the HandleMagicLinkCreate method.

func HTTPMagicLinkEmailCreate added in v0.6.0

func HTTPMagicLinkEmailCreate(s *handle.Server) http.Handler

HTTPMagicLinkEmailCreate creates an HTTP handler for the HandleMagicLinkEmailCreate method.

func HTTPOTPCreate added in v0.6.0

func HTTPOTPCreate(s *handle.Server) http.Handler

HTTPOTPCreate creates an HTTP handler for the HandleOTPCreate method.

func HTTPOTPEmailCreate added in v0.6.0

func HTTPOTPEmailCreate(s *handle.Server) http.Handler

HTTPOTPEmailCreate creates an HTTP handler for the HandleOTPEmailCreate method.

func HTTPOTPValidate added in v0.6.0

func HTTPOTPValidate(s *handle.Server) http.Handler

HTTPOTPValidate creates an HTTP handler for the HandleOTPValidate method.

func HTTPReady

func HTTPReady(_ *handle.Server) http.Handler

HTTPReady creates an HTTP handler that always returns http.StatusOK.

func HTTPServiceAccountCreate

func HTTPServiceAccountCreate(s *handle.Server) http.Handler

HTTPServiceAccountCreate creates an HTTP handler for the HandleServiceAccountCreate method.

Types

type Validatable

type Validatable[T any] interface {
	Validate(config model.Validation) (T, error)
}

Validatable is an interface for validating a model.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL