api

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package api provides HTTP transport layer for the proxy service.

Index

Constants

View Source
const ContentType = "application/json"

Variables

This section is empty.

Functions

func MakeHandler

func MakeHandler(
	svc proxy.Service,
	instanceID string,
	auditSvc audit.Service,
	authn mgauthn.AuthNMiddleware,
	domainAuthn mgauthn.AuthNMiddleware,
	idp supermq.IDProvider,
	proxyTransport http.RoundTripper,
	rter *router.Router,
) http.Handler

Types

type GuardrailsConfig

type GuardrailsConfig struct {
	Enabled  bool
	URL      string
	AgentURL string
}

GuardrailsConfig holds configuration for the guardrails sidecar service.

Jump to

Keyboard shortcuts

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