handler

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 7 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) GetPolicyDecision

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

GetPolicyDecision handles getting a policy decision

func (*Handler) SetupRoutes

func (h *Handler) SetupRoutes(mux *http.ServeMux)

SetupRoutes configures all API routes

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