httpingress

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthCheck

type HealthCheck struct {
	Status string `json:"status"`
	Error  string `json:"error,omitempty"`
}

HealthCheck represents a single component health check

type HealthResponse

type HealthResponse struct {
	Status string                 `json:"status"`
	Checks map[string]HealthCheck `json:"checks"`
}

HealthResponse represents the JSON response for /health endpoint

type IngressConfig

type IngressConfig struct {
	RequestTimeout time.Duration
}

type Server

type Server struct {
	Log *slog.Logger
	// contains filtered or unexported fields
}

func NewServer

func NewServer(
	ctx context.Context,
	log *slog.Logger,
	config IngressConfig,
	rpcClient rpc.Client,
	aa activator.AppActivator,
	httpMetrics *metrics.HTTPMetrics,
	logWriter observability.LogWriter,
) *Server

func (*Server) DeriveApp

func (h *Server) DeriveApp(host string) (string, bool)

func (*Server) DoRequest added in v0.3.1

DoRequest handles internal HTTP requests to app sandboxes. This method reuses the same lease management infrastructure as the HTTP proxy but is called directly via Go method invocation rather than through the HTTP listener.

func (*Server) ServeHTTP

func (h *Server) ServeHTTP(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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