httpingress

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: Apache-2.0 Imports: 24 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) 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