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

module

package
v0.0.0-...-c703685 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BindingReference

type BindingReference struct {
	Requires   []capability.Requirement
	Mechanisms []capability.Mechanism
}

BindingReference keeps declared connections separate from prerequisites. Neither establishes availability in an installed host.

type Contributions

type Contributions[S any] struct {
	Presentation       []presentation.Status
	ActivityDetails    []activitydetail.Definition[S]
	ReplayTiming       []replaytiming.Definition[S]
	DiagnosticSections []diagnosticsection.Definition[S]
	Inspection         []inspection.Definition[S]
	Guidance           []guidance.Section
	Commands           []command.Definition[S]
	RecordKinds        []recordkind.Spec
	References         []reference.Resolver
}

Contributions declares typed contributions before construction. Slots holds values for module hosts; composition supplies presentation to its application host.

type Descriptor

type Descriptor[D, S, B, V any] struct {
	ID                      ID
	Summary                 string
	Requires                []ID
	Lifetime                Lifetime
	Resources               []string
	Contributes             Contributions[S]
	HostsGuidance           bool
	HostsRecords            bool
	HostsReferences         bool
	HostsActivityDetails    bool
	HostsInspection         bool
	HostsReplayTiming       bool
	HostsDiagnosticSections bool
	New                     func(D, Slots) (S, error)
	Views                   V
	Bindings                B
	Start                   func(context.Context, S) error
	Stop                    func(context.Context, S) error
}

Descriptor keeps typed construction separate from backend-specific bindings. B is the backend binding value, so contracts never imports a backend package. New assembles state; Start acquires declared invocation resources.

func (Descriptor[D, S, B, V]) Reference

func (d Descriptor[D, S, B, V]) Reference() Reference

Reference reads declaration values without constructing a service or invoking lifecycle, contribution or binding callbacks.

type ID

type ID string

type Lifetime

type Lifetime string
const (
	Stateless       Lifetime = "stateless"
	Invocation      Lifetime = "invocation"
	AttachedSession Lifetime = "attached-session"
	HostOperation   Lifetime = "host-operation"
)

type NoBindings

type NoBindings struct{}

NoBindings declares a backend-neutral module.

func (NoBindings) Reference

func (NoBindings) Reference() BindingReference

type NoViews

type NoViews struct{}

NoViews declares a module without renderer contributions.

type Reference

type Reference struct {
	ID          ID
	Summary     string
	Requires    []ID
	Lifetime    Lifetime
	Resources   []string
	Contributes []string
	Hosts       []string
	Commands    []string
	Records     []string
	References  []string
}

Reference contains declaration metadata without executable callbacks.

type Slots

type Slots struct {
	ActivityDetails    []activitydetail.Provider
	ReplayTiming       []replaytiming.Reader
	DiagnosticSections []diagnosticsection.Contribution
	Inspection         []inspection.Contribution
	Guidance           []guidance.Section
	RecordKinds        []recordkind.Spec
	References         []reference.Resolver
}

Slots contains the contribution families implemented by the current binder. Further families are added with their first consumer, rather than placeholders.

Jump to

Keyboard shortcuts

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