api

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: MIT Imports: 26 Imported by: 0

Documentation

Overview

Package api wires the HTTP handlers for caffeine.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg config.Config, webAssets fs.FS, deps Deps) http.Handler

New builds the root http.Handler. webAssets is the embedded web app (may be nil in tests).

Types

type Deps

type Deps struct {
	ShotStore        *shots.Store
	ShotSyncer       *shots.Syncer
	LiveHub          *live.Hub
	AISettings       *settings.Manager
	PreheatStore     *preheat.Store
	PreheatScheduler *preheat.Scheduler
	PushStore        *push.Store
	PushService      *push.Service
	ProfileImages    *profileimages.Store
	AIRecorder       *ai.Recorder
	Beans            *beans.Store
}

Deps bundles the runtime collaborators the API needs. Fields may be nil.

Jump to

Keyboard shortcuts

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