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