server

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package server implements the isnow HTTP API (specs/contracts/http-api.md): a status-code membership test, occurrence derivation, a builder, long-poll, and SSE — every handler a pure function of (request, injected clock).

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 serves the isnow HTTP API with an injected clock and sleeper.

func New

func New(now app.Clock, sleep app.Sleeper) *Server

New builds a Server. sleep drives wait/watch timing (injectable for tests).

func (*Server) Handler

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

Handler returns the routed HTTP handler with no-store caching.

Jump to

Keyboard shortcuts

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