moonbitstack/moonrpc/examples/29-thrift-idl does not have a README file
pub(all) enum Mood {
Calm
Happy
}pub(all) struct Person {
name : String
age : Int?
tags : Array[String]
scores : Map[String, Int]
portrait : Bytes
mood : Mood
stamped : SharedStamp
}pub(all) struct SharedMissing {
message : String
code : Int
}pub(all) struct SharedStamp {
at : Int64
}async fn[T : Transport] greeter_add(transport : T, proto : &Protocol, a : Int, b : Int) -> Int raise ThriftErrorasync fn[T : Transport] greeter_find(transport : T, proto : &Protocol, key : String) -> Result[String, GreeterFindError] raise ThriftErrorasync fn[T : Transport] greeter_hello(transport : T, proto : &Protocol, who : Person) -> String raise ThriftErrorasync fn[T : Transport] greeter_notify(transport : T, proto : &Protocol, text : String) -> Unit raise ThriftErrorasync fn[T : Transport] greeter_shout(transport : T, proto : &Protocol, text : String) -> Result[Unit, GreeterShoutError] raise ThriftErrorfn register_greeter(processor : Processor, hello : (Person) -> String, add : (Int, Int) -> Int, notify : (String) -> Unit, find : (String) -> Result[String, GreeterFindError], shout : (String) -> Result[Unit, GreeterShoutError], ping : () -> String) -> UnitInstall
Download zipgRPC for MoonBit.