Versions in this module Expand all Collapse all v0 v0.6.0 Dec 4, 2026 v0.5.0 Dec 2, 2026 Changes in this version + func Call[I, O any](ctx context.Context, caller Caller, method Method[I, O], input I) (O, error) + func Register[I, O any](r *Registry, method Method[I, O], ...) error + type Caller interface + Call func(context.Context, plugin.ContractRef, string, json.RawMessage) (json.RawMessage, error) + type Method struct + Contract plugin.ContractRef + Input *schema.Schema + Operation plugin.Operation + Output *schema.Schema + ValidateInput func(Input) error + ValidateOutput func(Output) error + type Options struct + Authorize func(context.Context, plugin.Request) error + MaxCallDuration time.Duration + SchemaEngine SchemaEngine + type Registry struct + func New(identity plugin.Identity) (*Registry, error) + func NewWithSchemaEngine(identity plugin.Identity, schemas SchemaEngine) (*Registry, error) + func (r *Registry) Descriptor() plugin.Descriptor + func (r *Registry) Guest(opts Options) (*plugin.Guest, error) + func (r *Registry) Snapshot(opts Options) (plugin.Descriptor, plugin.GuestOptions, error) + type SchemaEngine interface + CheckSchema func(schema.Schema, json.RawMessage) error + ValidateSchema func(schema.Schema) error