decisionsupport

package
v0.64.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

README

Hexa Policy-OPA Decision Support Middleware

This package is a middleware component that can be installed to call the HexaOPA PDP for decisions.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DecisionProvider

type DecisionProvider interface {
	BuildInput(r *http.Request) (any interface{}, err error)
	Allow(any interface{}) (bool, error)
}

type DecisionSupport

type DecisionSupport struct {
	Provider     DecisionProvider
	Unauthorized http.HandlerFunc
	Skip         []string
}

func (*DecisionSupport) Middleware

func (d *DecisionSupport) Middleware(next http.Handler) http.Handler

Jump to

Keyboard shortcuts

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