api

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package api exposes the engine's live snapshot and the store's history over HTTP, and serves the embedded dashboard. It is consumed locally by the dashboard UI (and could back a Wails/native shell later).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server wires the engine (live), store (history) and update checker to HTTP.

func NewServer

func NewServer(eng *engine.Engine, store *storage.Store, updater *update.Checker) *Server

NewServer builds a Server. store and updater may be nil.

func (*Server) Handler

func (s *Server) Handler() http.Handler

Handler returns the API handler. netscope is app-only: the dashboard UI is served by the native app (which embeds internal/webui) — the daemon exposes data exclusively under /api over the unix socket and serves no static assets.

Jump to

Keyboard shortcuts

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