mw

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrometheusMiddleware

func PrometheusMiddleware(next http.Handler) http.Handler

PrometheusMiddleware records Prometheus metrics for HTTP requests.

func ZCAPLDMiddleware

func ZCAPLDMiddleware(c *ZCAPConfig, handlerAction string) mux.MiddlewareFunc

ZCAPLDMiddleware returns the ZCAPLD middleware that authorizes requests.

Types

type CapabilityResolver

type CapabilityResolver = zcapld.CapabilityResolver

CapabilityResolver is an alias for zcapld.CapabilityResolver.

type DocumentLoader

type DocumentLoader = ld.DocumentLoader

DocumentLoader is an alias for ld.DocumentLoader.

type VDRResolver

type VDRResolver = zcapld.VDRResolver

VDRResolver is an alias for zcapld.VDRResolver.

type ZCAPConfig

type ZCAPConfig struct {
	AuthService          authService
	JSONLDLoader         ld.DocumentLoader
	Logger               log.Logger
	VDRResolver          zcapld.VDRResolver
	BaseResourceURL      string
	ResourceIDQueryParam string
}

ZCAPConfig is a configuration for zcapld middleware.

Jump to

Keyboard shortcuts

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