http

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func NewHandler

func NewHandler(config HandlerConfig) (*Handler, error)

func (*Handler) ServeHTTP

func (handler *Handler) ServeHTTP(w nethttp.ResponseWriter, r *nethttp.Request)

type HandlerConfig

type HandlerConfig struct {
	Queue               asyncpkg.Queue
	RunState            runstate.Repository
	Policy              security.Policy
	Audit               audit.Sink
	AuthMiddleware      func(nethttp.Handler) nethttp.Handler
	MetricsHandler      nethttp.Handler
	IDGenerator         func() string
	Now                 func() time.Time
	MaxBodyBytes        int64
	Version             string
	EventsHandler       nethttp.Handler
	HITLHandler         nethttp.Handler
	CheckpointHandler   nethttp.Handler
	StudioHandler       nethttp.Handler
	RetentionHandler    nethttp.Handler
	InsecureAllowNoAuth bool
}

type RunsMux added in v0.2.0

type RunsMux struct {
	Checkpoint http.Handler
	Async      http.Handler
}

RunsMux routes checkpoint Studio paths before falling back to the async runs handler.

func (*RunsMux) ServeHTTP added in v0.2.0

func (mux *RunsMux) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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