type

PluginTransportContext

Initialized application state supplied while a plugin binds transports.

Properties

PropertyTypeDescription
Manifestschema.ManifestThe immutable resolved schema manifest.
Snapshotschema.SnapshotSnapshot is the resolved schema the operation engine runs on. It is shared, read-only state: a transport must not modify it, and reading it reuses the engine's block definition views instead of binding another copy.
Local*LocalAPIThe ordinary access-controlled local operation API.
App*AppThe fully initialized application, including authentication services.

Full signature

type PluginTransportContext struct { Manifest schema.Manifest // Snapshot is the resolved schema the operation engine runs on. It is shared, // read-only state: a transport must not modify it, and reading it reuses the // engine's block definition views instead of binding another copy. Snapshot schema.Snapshot Local *LocalAPI // App exposes public authentication and other application-owned operations // that do not belong to LocalAPI. It is fully initialized before binding. App *App }

Source core/plugin.go:157