sealing: Handle seed changes more correctly

This commit is contained in:
Łukasz Magiera
2020-01-16 02:25:49 +01:00
parent e9ca6c0871
commit ffdd436b52
6 changed files with 125 additions and 37 deletions
+2
View File
@@ -16,6 +16,8 @@ type Event struct {
User interface{}
}
// TODO: This probably should be returning an int indicating partial event processing
// (or something like errPartial(nEvents))
// returns func(ctx Context, st <T>) (func(*<T>), error), where <T> is the typeOf(User) param
type Planner func(events []Event, user interface{}) (interface{}, error)