moonbitstack/moonzero/conf does not have a README file
pub(all) suberror Refused {
Refused(String)
}fn MiddlewaresConf::new(trace? : Bool, log? : Bool, prometheus? : Bool, max_conns? : Bool, breaker? : Bool, shedding? : Bool, timeout? : Bool, recover? : Bool, metrics? : Bool, max_bytes? : Bool, gunzip? : Bool) -> MiddlewaresConfpub(all) struct RestConf {
service : ServiceConf
cert_file : String
key_file : String
verbose : Bool
max_conns : Int
max_bytes : Int
cpu_threshold : Int64
signature : SignatureConf
middlewares : MiddlewaresConf
trace_ignore_paths : Array[String]
}fn RestConf::new(service? : ServiceConf, cert_file? : String, key_file? : String, verbose? : Bool, max_conns? : Int, max_bytes? : Int, cpu_threshold? : Int64, signature? : SignatureConf, middlewares? : MiddlewaresConf, trace_ignore_paths? : Array[String]) -> RestConfpub(all) struct RpcClientConf {
target : String
endpoints : Array[String]
timeout_ms : Int
non_block : Bool
middlewares : RpcClientMiddlewaresConf
} derive(Eq, Debug, FromJson)fn RpcClientConf::new(target? : String, endpoints? : Array[String], timeout_ms? : Int, non_block? : Bool, middlewares? : RpcClientMiddlewaresConf) -> RpcClientConffn RpcClientMiddlewaresConf::from_json(Json, JsonPath) -> RpcClientMiddlewaresConf raise JsonDecodeErrorfn RpcClientMiddlewaresConf::new(trace? : Bool, log? : Bool, prometheus? : Bool, breaker? : Bool, timeout? : Bool) -> RpcClientMiddlewaresConffn RpcClientMiddlewaresConf::not_equal(x : RpcClientMiddlewaresConf, y : RpcClientMiddlewaresConf) -> Boolpub(all) struct RpcServerConf {
name : String
host : String
port : Int
timeout_ms : Int
cpu_threshold : Int64
cpu_threshold_overload : Int64
auth : Bool
health : Bool
middlewares : RpcServerMiddlewaresConf
} derive(Eq, Debug, FromJson)fn RpcServerConf::new(name? : String, host? : String, port? : Int, timeout_ms? : Int, cpu_threshold? : Int64, cpu_threshold_overload? : Int64, auth? : Bool, health? : Bool, middlewares? : RpcServerMiddlewaresConf) -> RpcServerConffn RpcServerMiddlewaresConf::from_json(Json, JsonPath) -> RpcServerMiddlewaresConf raise JsonDecodeErrorfn RpcServerMiddlewaresConf::new(trace? : Bool, recover? : Bool, stat? : Bool, prometheus? : Bool, breaker? : Bool, shedding? : Bool, timeout? : Bool, auth? : Bool) -> RpcServerMiddlewaresConffn RpcServerMiddlewaresConf::not_equal(x : RpcServerMiddlewaresConf, y : RpcServerMiddlewaresConf) -> Boolfn ServiceConf::new(name? : String, host? : String, port? : Int, timeout_ms? : Int, log_level? : LogLevel) -> ServiceConfpub(all) struct SignatureConf {
strict : Bool
expiry_ms : Int64
private_keys : Array[PrivateKeyConf]
} derive(Eq, Debug)fn SignatureConf::new(strict? : Bool, expiry_ms? : Int64, private_keys? : Array[PrivateKeyConf]) -> SignatureConffn canonical_key(key : String) -> Stringlet port : Intlet rpc_port : IntInstall
Download zipA service framework for MoonBit.