WIP: generic activation through + new interval-based replication trigger
This commit is contained in:
@@ -3,6 +3,8 @@ package wakeup
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
|
||||
"github.com/zrepl/zrepl/daemon/job/trigger"
|
||||
)
|
||||
|
||||
type contextKey int
|
||||
@@ -17,6 +19,10 @@ func Wait(ctx context.Context) <-chan struct{} {
|
||||
return wc
|
||||
}
|
||||
|
||||
func Trigger(ctx context.Context) *trigger.Trigger {
|
||||
panic("unimpl")
|
||||
}
|
||||
|
||||
type Func func() error
|
||||
|
||||
var AlreadyWokenUp = errors.New("already woken up")
|
||||
|
||||
Reference in New Issue
Block a user