Documentation
¶
Overview ¶
Package inproc is the client.Client over an engine in the same process: no wire, no serialisation beyond the codec. It is what a terminal interface uses when it runs in the cartograph binary itself, and what the conformance suite uses to prove the scenarios against the engine directly.
Index ¶
- type Client
- func (c *Client) Actor(ctx context.Context) (string, error)
- func (c *Client) Checks(ctx context.Context, kind, id string) ([]client.Check, error)
- func (c *Client) Close() error
- func (c *Client) Flow(_ context.Context, kind string) (client.Flow, bool, error)
- func (c *Client) Get(ctx context.Context, kind, id string) (client.Manifest, error)
- func (c *Client) Kinds(context.Context) ([]string, error)
- func (c *Client) List(ctx context.Context, kind, query string) ([]client.Summary, error)
- func (c *Client) SaveVersion(ctx context.Context, kind, id string, doc map[string]any, reason string) (client.Version, error)
- func (c *Client) SaveWorking(ctx context.Context, kind, id string, doc map[string]any) error
- func (c *Client) Schema(_ context.Context, kind string) ([]byte, error)
- func (c *Client) Settings(ctx context.Context) (client.Settings, error)
- func (c *Client) SharedDocument(ctx context.Context, kind, id string) (string, error)
- func (c *Client) Subscribe(ctx context.Context, kind, id string) (<-chan client.Event, error)
- func (c *Client) Validate(ctx context.Context, kind string, doc map[string]any) ([]client.Problem, error)
- func (c *Client) Working(ctx context.Context, kind, id string) (client.Manifest, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
E *engine.Engine
// Operator is recorded as the actor when the context carries no
// principal: the vault's settings say what it is.
Operator string
}
Client wraps an engine.
func (*Client) SaveVersion ¶
func (*Client) SaveWorking ¶
func (*Client) SharedDocument ¶
Click to show internal directories.
Click to hide internal directories.