diff --git a/modules/mesh-delivery-assigner/cmd/mesh-delivery-assigner/inputs.go b/modules/mesh-delivery-assigner/cmd/mesh-delivery-assigner/inputs.go index e13206b5..ba5f7bc4 100644 --- a/modules/mesh-delivery-assigner/cmd/mesh-delivery-assigner/inputs.go +++ b/modules/mesh-delivery-assigner/cmd/mesh-delivery-assigner/inputs.go @@ -25,6 +25,8 @@ import ( "git.novox.be/novox/mesh-sdk/go/keys" "git.novox.be/novox/mesh-sdk/go/process" "git.novox.be/novox/mesh-sdk/go/stateobjects" + + "mesh-delivery-assigner/internal/buckets" ) // A step's input by its digest (design 47 G §354, §712, A-237, A-243): the assigner keeps the input of each composition step @@ -48,10 +50,28 @@ const ( // inputsAskPrefix opens the keys that name an input by the id of the ask it was kept for: ask., the id escaped as a name, // holding the digest of the input the ask uses, so the build seat's step-ended of that ask finds it. inputsAskPrefix = "ask." - // inputsAtPrefix opens the keys that say when an input was last written: at., the time in inputsTime. - inputsAtPrefix = "at." ) +// inputAsk is what an ask's key holds (A-465b): the digest of the input the ask uses and the time the ask wrote it, in inputsTime. +type inputAsk struct { + Digest string `json:"digest"` + At string `json:"at"` +} + +// readAsk reads an ask's key: the JSON form, or the bare key of the old form `