httpapi

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 30 Imported by: 0

Documentation

Overview

Package httpapi exposes the panel's REST API and serves the web UI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

func New

func New(store *postgres.Store, h *hub.Hub, issuer *auth.Issuer, cfg *config.Panel, log *slog.Logger, notifier Notifier) *API

func (*API) Router

func (a *API) Router(ui http.Handler) http.Handler

type Notifier added in v0.2.0

type Notifier interface {
	Test(ctx context.Context, c domain.NotificationChannel, e domain.Event) error
}

Notifier is the slice of the dispatcher the HTTP layer uses: everything else reaches it through the event log.

type SearchHit added in v0.8.0

type SearchHit struct {
	Kind  string `json:"kind"`
	UUID  string `json:"uuid"`
	Label string `json:"label"`
	Hint  string `json:"hint,omitempty"`
}

SearchHit is one thing the operator can jump to. Kind and uuid are what the palette needs to build a route; label and hint are what it shows.

Jump to

Keyboard shortcuts

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