Documentation
¶
Overview ¶
Package driveapi is the engine's API for the loop: pursuit.drive turns the loop on for one opted-in pursuit, and pursuit.again is a person's answer for a change the loop holds for them. It only converts and calls internal/state/drive, which holds the loop; it never merges.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Methods ¶
func Methods(where func(ctx context.Context, repo string) (work.Submitter, string, error), name func(ctx context.Context, root string) string, bind func(root string) (staterun.StartIn, error), refused func(error) error) []api.Method
Methods returns pursuit.drive and pursuit.again. where opens a repo's state and finds its root, replying bad_request for a repo the engine cannot serve. name names the person running Physa on this machine, as the CLI names them, for a root; "" when none can be had. bind loads a root's harness binding as run.start does, replying bad_request when no run can start from it, or the engine's own error when it runs no loop. refused turns a store's refusal into bad_request and leaves faults as they are.
Types ¶
This section is empty.