api

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License: MIT 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 HTTP requests for the governance manager

func NewHandler

func NewHandler(reg *registry.Registry, eventQueue eventqueue.IEventQueue) *Handler

NewHandler creates a new API handler

func (*Handler) HealthHandler

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

HealthHandler handles GET /health requests

func (*Handler) RegisterHandler

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

RegisterHandler handles POST /register requests

func (*Handler) ServicesHandler

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

ServicesHandler handles GET /services requests (for debugging)

func (*Handler) UnregisterHandler

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

UnregisterHandler handles DELETE /unregister requests

type ValidationError

type ValidationError struct {
	Message string
	Index   *int
}

ValidationError represents a validation error

func (*ValidationError) Error

func (e *ValidationError) Error() string

Jump to

Keyboard shortcuts

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