bend-kit-gateway
Releases (3)
Definitions (21)
gateway.bend
- type GateThe shared state of one gateway.
- type PendingA fetch in flight, as copyable data, so it can cross to the request task and back.
- type UpstreamWhat the upstream fetch did.
- type Begin
- type Finish
- def newAn empty gateway: `capacity` requests at once, and an empty cache.
- def give.released
- def give.split
- def giveGives one lent unit back to the pool.
- def start.ticketStarts a fetch of key at clock `at`, as data.
- def start
- def settleStores what a fetch found.
- def begin.fetch
- def begin.refundThe joined grant names another pool: give the new unit back and refuse.
- def begin.fresh
- def begin.read
- def begin.joined
- def begin.took
- def begin.granted
- def beginAuthorizes req, takes one unit, and reads key at `now`.
- def finishStores what the fetch did and gives its unit back.