moonbitstack/moonctl/proto does not have a README file
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
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
}syntax = "proto3";
package greet;
service Greeter {
rpc SayHello (HelloRequest) returns (HelloReply);
}
message HelloRequest { string name = 1; }
message HelloReply { string message = 1; }Install
Download zipmoonctl (mctl) — a spec-driven code generator for MoonBit (← goctl): parse a .api service spec and emit compilable moonapi scaffolding (routes + handler stubs).