runtimeconfig

package
v0.7.0 Latest Latest
Warning

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

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

Documentation

Overview

Package runtimeconfig extracts trusted system-level configuration forwarded by ProcessModule Core to module API requests.

Module HTTP ports must not be exposed directly to untrusted clients because runtime configuration headers are trusted only when requests come through Core.

Index

Constants

View Source
const (
	HeaderCurrencyCode = "X-ProcessModule-Currency-Code"
)

Variables

This section is empty.

Functions

func Require

func Require() echo.MiddlewareFunc

Require validates trusted runtime configuration and stores it in the Echo request context.

Types

type Config

type Config struct {
	Currency money.Currency
}

func From

func From(c *echo.Context) (Config, bool)

Jump to

Keyboard shortcuts

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