Help us shape the future of Go! Take the 2026 Go Developer Survey

contract

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package contract wires the email plugin's deep-link settings page into the forge-dashboard contract registry. The plugin owns no intents of its own — its settings (email.from_address, email.app_name, email.base_url) flow through the auth contributor's settings.namespace / settings.update intents via auto-discovery.

Wired from plugins/email/contract.go (Plugin.RegisterContract method), which authsome's RegisterContractContributor loop invokes after the auth contributor itself registers.

Index

Constants

This section is empty.

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 manifest, validates it, registers it against the dashboard's contract registry, and (since this plugin currently has no intents) returns. Future intent registrations belong here.

Types

type Deps

type Deps struct {
	Engine *authsome.Engine
}

Deps is the typed dependency bundle. Engine is required for symmetry with other plugin contracts even though the email surface doesn't touch it directly — future intents (e.g. email.lastSend, a status query) will need it.

Jump to

Keyboard shortcuts

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