bootx

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package bootx owns framework-level startup validation.

It is intentionally small for now: Kernel services can use it before server startup to fail fast on topology/policy mismatches instead of letting each business component rediscover the same production rules.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateGovernance

func ValidateGovernance(cfg GovernanceConfig) error

ValidateGovernance fails fast when Kernel governance contracts are inconsistent with runtime topology or missing required providers.

Types

type Deployment

type Deployment struct {
	Replicas int
}

Deployment describes the runtime topology known at startup.

type GovernanceConfig

type GovernanceConfig struct {
	Deployment      Deployment
	ServerLimits    []ratelimitx.Policy
	Downstreams     []clientpolicyx.DownstreamPolicy
	AuthnRequired   bool
	AuthnConfigured bool
	AuthzRequired   bool
	AuthzConfigured bool
	AuditRequired   bool
	AuditConfigured bool
}

GovernanceConfig contains the policy slices bootx can validate before serving traffic.

Jump to

Keyboard shortcuts

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