api

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package api exposes Sforza's REST API.

Index

Constants

View Source
const HeaderTenantID = "X-Tenant-ID"

HeaderTenantID selects the active tenant for the request.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server wires storage, authentication and configuration into an HTTP API.

func New

func New(cfg *config.Config, stores *store.Stores, authn auth.Authenticator) *Server

New creates a Server.

func (*Server) Router

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

Router builds the HTTP routing table.

Jump to

Keyboard shortcuts

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