moonbitstack/moonzero/limit does not have a README file
pub struct MaxConns {
max : Int
in_flight : Int
}pub struct RedisPeriodLimit {
client : RedisClient
script : RedisScript
period_secs : Int
quota : Int
prefix : String
}fn RedisPeriodLimit::new(client : RedisClient, period_secs~ : Int, quota~ : Int, prefix? : String) -> RedisPeriodLimitasync fn RedisPeriodLimit::take(self : RedisPeriodLimit, key : String) -> PeriodResult raise RedisErrorpub struct RedisTokenLimit {
client : RedisClient
script : RedisScript
rate : Int
burst : Int
token_key : Bytes
ts_key : Bytes
rescue : TokenBucket
}fn RedisTokenLimit::new(client : RedisClient, rate~ : Int, burst~ : Int, key~ : String) -> RedisTokenLimitlet period_script : Stringlet token_script : StringInstall
Download zipmoonzero — a service framework for MoonBit (← go-zero): config-driven assembly of a moonapi application with middleware, producing a runnable moonasgi AsgiApp. v0.6.2 runs real unary, server/client-streaming, and bidirectional zRPC calls over moonrpc's h2c transport (an in-process RpcChannel drives HPACK HEADERS + length-prefixed DATA + grpc-status trailers through the H2Server engine), graceful shutdown draining in-flight calls, a persisted, watchable etcd v3-shaped registry (watch, events_since catch-up, snapshot/restore) with round-robin/pick-first balancers and a load-balanced client, real file-backed registry I/O over moonbitlang/async's fs with a live filesystem watcher (native discov driver), request metrics (counter + latency histogram), and W3C traceparent propagation.