moonbitstack/moonctl/proto does not have a README file
pub(all) struct GatewayRoute {
verb : String
path : String
rpc : String
}pub(all) struct Proto {
package_ : String
services : Array[ProtoService]
messages : Array[ProtoMessage]
enums : Array[ProtoEnum]
}pub(all) struct ProtoEnumValue {
name : String
number : Int
}pub(all) struct ProtoField {
name : String
type_ : String
proto : String
label : Label
number : Int
}pub(all) struct ProtoMessage {
name : String
fields : Array[ProtoField]
oneofs : Array[ProtoOneof]
reserved_numbers : Array[Int]
reserved_names : Array[String]
}pub(all) struct Rpc {
name : String
request : String
response : String
client_streaming : Bool
server_streaming : Bool
}fn gateway_file_name(proto_path : String) -> Stringsyntax = "proto3";
package greet;
service Greeter {
rpc SayHello (HelloRequest) returns (HelloReply);
}
message HelloRequest { string name = 1; }
message HelloReply { string message = 1; }Install
Download zipProject and code generator for MoonBit services.