compose

package
v0.0.0-...-4b805ee Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelHost         = "liteproxy.host"
	LabelPort         = "liteproxy.port"
	LabelPortHTTP     = "liteproxy.port.http"
	LabelPath         = "liteproxy.path"
	LabelRedirectFrom = "liteproxy.redirect_from"
	LabelPassHost     = "liteproxy.passhost"
	LabelStripPrefix  = "liteproxy.strip_prefix"
	LabelPassthrough  = "liteproxy.passthrough"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Route

type Route struct {
	Host           string
	PathPrefix     string
	ServiceName    string
	ServicePort    int
	HTTPPort       int // Optional: separate port for HTTP passthrough (for ACME challenges)
	PassHostHeader bool
	StripPrefix    bool
	RedirectFrom   []string
	Passthrough    bool // Forward raw TCP without terminating TLS or processing HTTP
}

Route represents a single routing rule extracted from compose labels

func Parse

func Parse(data []byte, filename string) ([]Route, error)

Parse parses compose yaml data and extracts routes from labeled services

func ParseFile

func ParseFile(path string) ([]Route, error)

ParseFile reads a compose file and extracts routes from labeled services

Jump to

Keyboard shortcuts

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