def Serve.ready.go
import bend-kube-runtime@0.2.0.0/src/serve.bend as Serveimport Base
85def Serve.ready.go(standby: Bool, ready: Bool) -> String:
86 match standby ready:
87 case True{} _:
88 Serve.reply(200, "text/plain", "standby\n")
89 case False{} True{}:
90 Serve.reply(200, "text/plain", "ok\n")
91 case False{} False{}:
92 Serve.reply(503, "text/plain", "store not synced\n")