measures

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package measures handles security controls and their lifecycle.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() modregistry.Module

func RequireMeasureUpdateOwn

func RequireMeasureUpdateOwn(q db.Querier, e *authz.Engine) func(http.Handler) http.Handler

RequireMeasureUpdateOwn loads the measure and enforces update_own policy with participant context before handing control to the route handler.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(q db.Querier, engine *authz.Engine) *Handler
func (h *Handler) AddLink(w http.ResponseWriter, r *http.Request)

func (*Handler) Create

func (h *Handler) Create(w http.ResponseWriter, r *http.Request)

func (*Handler) Delete

func (h *Handler) Delete(w http.ResponseWriter, r *http.Request)
func (h *Handler) DeleteLink(w http.ResponseWriter, r *http.Request)

func (*Handler) Edit

func (h *Handler) Edit(w http.ResponseWriter, r *http.Request)

func (*Handler) LinkRequirement

func (h *Handler) LinkRequirement(w http.ResponseWriter, r *http.Request)

func (*Handler) List

func (h *Handler) List(w http.ResponseWriter, r *http.Request)

func (*Handler) New

func (h *Handler) New(w http.ResponseWriter, r *http.Request)

func (*Handler) SearchMeasureRequirements

func (h *Handler) SearchMeasureRequirements(w http.ResponseWriter, r *http.Request)

func (*Handler) Show

func (h *Handler) Show(w http.ResponseWriter, r *http.Request)

func (*Handler) UnlinkRequirement

func (h *Handler) UnlinkRequirement(w http.ResponseWriter, r *http.Request)

func (*Handler) Update

func (h *Handler) Update(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis
templ: version: v0.3.1020
templ: version: v0.3.1020

Jump to

Keyboard shortcuts

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