api

package
v2.0.26 Latest Latest
Warning

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

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

Documentation

Overview

Package api defines the web API for Zeno.

Index

Constants

This section is empty.

Variables

View Source
var (

	// ErrAPIAlreadyInitialized is returned when the API server is already initialized.
	ErrAPIAlreadyInitialized = errors.New("API server already initialized")
)

Functions

func Start

func Start() error

Start begins serving HTTP requests in a separate goroutine.

func Stop

func Stop(timeout time.Duration) error

Stop gracefully shuts down the server within the provided timeout.

Types

This section is empty.

Jump to

Keyboard shortcuts

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