{"modulePath":"github.com/dphaener/physa","version":"v0.0.57","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package driveapi\n\nPackage 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.\n\n## Functions\n\n```go\nfunc Methods(where func(ctx context.Context, repo string) (work.Submitter, string, error), name func(ctx context.Context, root string) string,\n\tbind func(root string) (staterun.StartIn, error), refused func(error) error) []api.Method\n```\nMethods 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.\n\n","path":"github.com/dphaener/physa/internal/workapi/driveapi","name":"driveapi","synopsis":"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.","isRedistributable":true}
