moonbitstack/moonzero/limit does not have a README file
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 zipA service framework for MoonBit after go-zero: config-driven REST engine and middleware over moonapi, zRPC over moonrpc, discovery on etcd, consul and redis, and go-zero's breaker, shedder and limiters over moonward.