handler

package
v0.0.0-...-f524348 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandlListPlugins

func HandlListPlugins(reg *registry.PluginRegistry) http.HandlerFunc

func HandleHealth

func HandleHealth(reg *registry.PluginRegistry) http.HandlerFunc

Types

type HealthPluginResult

type HealthPluginResult struct {
	Name   string `json:"name"`
	Status string `json:"status"`
	Error  string `json:"error,omitempty"`
}

type HealthResult

type HealthResult struct {
	Status  string               `json:"status"`
	Plugins []HealthPluginResult `json:"plugins"`
}

type RegisterPluginRequest

type RegisterPluginRequest struct {
	Name    string `json:"name"`
	Type    string `json:"type"`
	Address string `json:"address"`
}

Jump to

Keyboard shortcuts

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