Help us shape the future of Go! Take the 2026 Go Developer Survey

api

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(svc *engine.Service) http.Handler

Types

type Handler

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

func (*Handler) BulkDelete

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

func (*Handler) Create

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

func (*Handler) Delete

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

func (*Handler) Export

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

func (*Handler) Get

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

func (*Handler) Import

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

func (*Handler) List

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

func (*Handler) PinnedPreview added in v0.6.0

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

PinnedPreview renders the full pinned-payload that the UserPromptSubmit hook would inject for a given project — used by the admin UI to show users exactly what their agent receives every turn.

Rendering uses a fixed seed so the preview is reproducible. The system layer rotates with random seeds in production, but for an inspection UI stability beats novelty.

func (*Handler) Search

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

func (*Handler) Stats

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

func (*Handler) Update

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

Jump to

Keyboard shortcuts

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