network

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

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

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

CreateHTTPHandlers creates the HTTP handlers for the server.

func HTTPEmailLinkCreate

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

HTTPEmailLinkCreate creates an HTTP handler for the HandleEmailLinkCreate method.

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 HTTPLinkCreate

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

HTTPLinkCreate creates an HTTP handler for the HandleLinkCreate 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(s 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