httpapi

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(s *service.Service, apiKey string, logger *slog.Logger, options ...Option) http.Handler

Types

type Option added in v0.2.0

type Option func(*Server, *http.ServeMux)

Option configures authentication or operational routes.

func APIKeys added in v0.4.0

func APIKeys(source func(time.Time) ([]string, error)) Option

func Diagnostics added in v0.2.0

func Diagnostics(fn func() any) Option

func Operations added in v0.4.0

func Operations(fn func(context.Context) ranjit.Diagnostics) Option

type Server

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

Jump to

Keyboard shortcuts

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