package resolution import ( mcat "git.novox.be/novox/mesh-sdk/go/catalogue" ) // Keyed is whether a need is a provision of the seat mesh-provisioner: a key, an entry in its consumer's plan, and a // wait of the consumer's want. consumerHanded is whether the composition hands the consumer to the provisioner. func Keyed(consumerHanded bool, n mcat.Needed) bool { if n.ByRecord || n.Module == "" || n.From == "" { return false } return consumerHanded || n.AnsweredByHelper }