moonbitstack/moonzero/consul does not have a README file
pub suberror ConsulError {
ConsulError(String)
}fn ConsulClient::health_service(self : ConsulClient, name : String) -> Array[Endpoint] raise ConsulErrorfn ConsulClient::register_service(self : ConsulClient, id : String, name : String, address : String, port : Int, ttl_secs : Int) -> Unit raise ConsulErrorfn ConsulDiscovery::deregister_instance(self : ConsulDiscovery, service : String, endpoint : Endpoint) -> Unit raisefn ConsulDiscovery::keepalive(self : ConsulDiscovery, service : String, endpoint : Endpoint) -> Unit raisefn ConsulDiscovery::register(self : ConsulDiscovery, service : String, endpoint : Endpoint, ttl? : Int) -> String raisepub struct ConsulResponse {
status : Int
body : Bytes
}fn consul_check_id(service_id : String) -> Stringfn consul_register_body(id : String, name : String, address : String, port : Int, ttl_secs : Int) -> BytesInstall
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.