oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1package runner
2
3import (
4 "amadan.net/oficina/equipo/internal/runnerproto"
5 "context"
6)
7
8var ErrTransient = runnerproto.ErrTransient
9var ErrCleanupExpired = runnerproto.ErrCleanupExpired
10var ErrNotClaimed = runnerproto.ErrNotClaimed
11var ErrClaimRefused = runnerproto.ErrClaimRefused
12
13type RefusalError = runnerproto.RefusalError
14
15func retryAuthority(ctx context.Context, call func() error) error {
16 return runnerproto.RetryAuthority(ctx, call)
17}
18func remoteError(err error) error { return runnerproto.RemoteError(err) }
19func refusalReason(key string) string { return runnerproto.RefusalReason(key) }
20func sendAdmittedTurn(ctx context.Context, send func() error, lost func(context.Context) error) error {
21 return runnerproto.SendAdmittedTurn(ctx, send, lost)
22}
23