serve

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package serve composes the gateway core into an http.Handler. It exists as a separate package so the seam types (package gateway) stay a leaf both the serving internals and external compositions can import without cycles.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg Config, opts ...gateway.Option) http.Handler

New builds the serving handler from a config plus extension options. With no options this is the self-host composition.

Types

type Config

type Config = server.Config

Config re-exports the server configuration surface compositions may set beyond the environment contract.

func ConfigFromEnv

func ConfigFromEnv() (Config, error)

ConfigFromEnv builds the config from the environment (the same contract the self-host docs describe: PORT, MEMCODE_PROVIDER, provider keys, …).

Jump to

Keyboard shortcuts

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