Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenProto ¶
func GenProto(schemas []parser.MTProtoSchemas, outFilePath, packageName, protoType string)
func GetWorkingDirectory ¶
func GetWorkingDirectory() string
Types ¶
type TplBaseTypeData ¶
type TplBaseTypeData struct { Name string ParamList []TplParam // Line string ResType string // 所有的子类 SubMessageList []*TplMessageData }
Base类型
type TplCRC32Info ¶
type TplMessageData ¶
type TplMessageData struct { Name string // 碰撞的字段名,特殊处理 ParamList []TplParam ResType string Line string }
对应生成proto消息
type TplServiceDataList ¶
type TplServiceDataList struct { PackageGo string PackageJava string BaseTypeList []*TplBaseTypeData RequestList []*TplMessageData VectorResList []TplParam ServiceList []TplBaseTypeData ConstructorList []TplCRC32Info RequestCRC32List []TplCRC32Info }
func GetProto ¶
func GetProto(schemas []parser.MTProtoSchemas, outFilePath, packageName, protoType string) *TplServiceDataList
Click to show internal directories.
Click to hide internal directories.