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 ¶
ValidationError represents a validation error
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
Click to show internal directories.
Click to hide internal directories.