contract

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package contract wires Bastion into the Forge dashboard's contract path. It registers the `bastion` contributor and answers its intents from the live gateway and the admin service.

Index

Constants

View Source
const ContributorName = "bastion"

ContributorName is the join key with packages/plugin-bastion's `extension` field. A mismatch hides the React plugin with no error anywhere, because that is what an uninstalled extension looks like.

Variables

This section is empty.

Functions

func Register

Register loads the embedded manifest, validates and registers it, and binds the handlers.

Types

type Deps

type Deps struct {
	// Gateway answers stats, circuits, discovery, OpenAPI and config. Required.
	Gateway *bastion.Gateway
	// Admin answers route reads and performs route writes. Required.
	Admin *admin.Service
	// Logger receives an Error entry for every error mapped to CodeInternal.
	// Optional.
	Logger forge.Logger
}

Deps bundles what the handlers need.

Jump to

Keyboard shortcuts

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