Versions in this module Expand all Collapse all v0 v0.1.1 Jun 2, 2024 v0.1.0 Mar 4, 2024 Changes in this version + func AddMongoModelImports(data string, impt []string) (string, error) + func GetFileName(structName, prefix string) (fileMongoName, fileIfName string) + func GetPkgName(structName string) string + type IdlExtractStruct struct + InterfaceInfo *InterfaceInfo + Name string + StructFields []*StructField + type InterfaceInfo struct + Methods []*InterfaceMethod + Name string + type InterfaceMethod struct + BelongedToStruct *IdlExtractStruct + Name string + Params code.Params + ParsedTokens string + Returns code.Returns + type PbUsedInfo struct + DocArgs *config.DocArgument + ImportPaths []string + func (info *PbUsedInfo) GeneratePbFile() error + func (info *PbUsedInfo) ParsePbIdl() (rawStructs []*IdlExtractStruct, err error) + type StructField struct + BelongedToStruct *IdlExtractStruct + IsBelongedToStruct bool + Name string + Tag reflect.StructTag + Type code.Type + type ThriftUsedInfo struct + DocArgs *config.DocArgument + ImportPaths []string + Req *plugin.Request + func (info *ThriftUsedInfo) ParseThriftIdl() (rawStructs []*IdlExtractStruct, err error) + type UpdateInfo struct + PreIfMethods []*InterfaceMethod + PreMethodNamesMap map[string]struct{} + Update bool + UpdateCurdFileContent []byte + UpdateIfFileContent []byte