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 ¶
func Register(d *dispatcher.Dispatcher, reg contract.Registry, wreg contract.WardenRegistry, deps Deps) error
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.
Click to show internal directories.
Click to hide internal directories.