httpapi

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: AGPL-3.0 Imports: 32 Imported by: 0

Documentation

Overview

Package httpapi wires akari-server's HTTP surface: authentication, account and token management, and the session ingest protocol.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Store *store.Store
	Cfg   config.Server
	// contains filtered or unexported fields
}

Server holds the dependencies shared by all handlers.

func New

func New(st *store.Store, cfg config.Server, reparser *reparse.Service) *Server

New builds a Server. The reparse service is shared with the startup auto-run and the CLI; here it backs the admin Reparse button, the status endpoint, and the UI gating, and its progress is pushed to watching browsers over the SSE hub.

func (*Server) Routes

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

Routes returns the HTTP handler for the whole API.

Jump to

Keyboard shortcuts

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