Help us shape the future of Go! Take the 2026 Go Developer Survey

handler

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler handles all API requests

func NewHandler

func NewHandler(db *gorm.DB) *Handler

NewHandler creates a new API handler

func (*Handler) CreatePolicyMetadata

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

CreatePolicyMetadata handles creating policy metadata

func (*Handler) DeletePolicyMetadata added in v0.5.0

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

DeletePolicyMetadata handles deleting one policy metadata record.

func (*Handler) GetPolicyDecision

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

GetPolicyDecision handles getting a policy decision

func (*Handler) ListPolicyMetadata added in v0.5.0

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

ListPolicyMetadata handles listing policy metadata with an optional schema filter.

func (*Handler) PatchPolicyMetadata added in v0.5.0

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

PatchPolicyMetadata handles partially updating one policy metadata record.

func (*Handler) RevokeAllowListEntry added in v0.5.0

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

RevokeAllowListEntry handles removing one application from a field's allow-list.

func (*Handler) UpdateAllowList

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

UpdateAllowList handles updating the allow list for a policy

Jump to

Keyboard shortcuts

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