avvik

package
v1.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(sqlDB *sql.DB) modregistry.Module

func RequireAvvikSubmitOwn added in v1.0.1

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

RequireAvvikSubmitOwn enforces the avvik/submit_own policy: the user must be the reporter, the creator, or an admin.

Types

type Handler

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

func NewHandler

func NewHandler(q db.Querier, sqlDB *sql.DB, engine *authz.Engine) *Handler

func (*Handler) AddAttachment

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

func (*Handler) AddNote

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

func (*Handler) AddNotification

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

func (*Handler) Close

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

func (*Handler) Create

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

func (*Handler) LinkActivity

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

func (*Handler) LinkMeasure

func (h *Handler) LinkMeasure(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) Show

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

func (*Handler) Triage

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

func (*Handler) UnlinkActivity

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

func (*Handler) UnlinkMeasure

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

func (*Handler) UpdateClosureFlags

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

func (*Handler) UpdateStatus

func (h *Handler) UpdateStatus(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