Help us shape the future of Go! Take the 2026 Go Developer Survey

httpapi

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HealthHandler

func HealthHandler() http.Handler

Types

type Authorizer

type Authorizer interface {
	Authorize(context.Context, string) (string, error)
}

type LoopbackAuthorizer

type LoopbackAuthorizer struct{}

func (LoopbackAuthorizer) Authorize

func (LoopbackAuthorizer) Authorize(_ context.Context, remoteAddr string) (string, error)

type Options

type Options struct {
	Authorizer            Authorizer
	WebDir                string
	Logger                *slog.Logger
	TopologyEventInterval time.Duration
	FixtureMutation       func(context.Context) (any, error)
}

type Server

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

func New

func New(application *app.App, options Options) *Server

func (*Server) Handler

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

Jump to

Keyboard shortcuts

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