adapters

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package adapters renders the "put halo-proxy in front of / behind stack X" config snippets shipped under deploy/integrations. The static files there are generated from these templates (go test ./internal/gateway/adapters -update) and a test fails if they drift.

Index

Constants

This section is empty.

Variables

View Source
var Outputs = map[string]string{
	"kong":  "kong/kong.yml",
	"envoy": "envoy/envoy.yaml",
	"nginx": "nginx/halo-proxy.conf",
	"apigw": "aws-api-gateway/openapi.yaml",
}

Outputs maps an adapter name to its path under deploy/integrations.

Functions

func Render

func Render(name string, p Params) ([]byte, error)

Render returns the snippet for adapter name.

Types

type Params

type Params struct {
	Host           string // halo-proxy host as the gateway sees it (default "halo-proxy")
	Port           int    // default 8088
	TimeoutSeconds int    // read/idle timeout for streams (default 600)
}

Params tunes a snippet. Zero values are filled with defaults.

func (Params) TimeoutMillis

func (p Params) TimeoutMillis() int

Jump to

Keyboard shortcuts

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