Documentation
¶
Index ¶
- func AddMongoModelImports(data string, impt []string) (string, error)
- func GetFileName(structName, prefix string) (fileMongoName, fileIfName string)
- func GetPkgName(structName string) string
- type IdlExtractStruct
- type InterfaceInfo
- type InterfaceMethod
- type PbUsedInfo
- type StructField
- type ThriftUsedInfo
- type UpdateInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFileName ¶
func GetPkgName ¶
Types ¶
type IdlExtractStruct ¶
type IdlExtractStruct struct {
Name string
StructFields []*StructField
InterfaceInfo *InterfaceInfo
UpdateInfo
}
type InterfaceInfo ¶
type InterfaceInfo struct {
Name string
Methods []*InterfaceMethod
}
type InterfaceMethod ¶
type PbUsedInfo ¶
type PbUsedInfo struct {
DocArgs *config.DocArgument
ImportPaths []string
// contains filtered or unexported fields
}
func (*PbUsedInfo) GeneratePbFile ¶
func (info *PbUsedInfo) GeneratePbFile() error
func (*PbUsedInfo) ParsePbIdl ¶
func (info *PbUsedInfo) ParsePbIdl() (rawStructs []*IdlExtractStruct, err error)
type StructField ¶
type ThriftUsedInfo ¶
type ThriftUsedInfo struct {
Req *plugin.Request
DocArgs *config.DocArgument
ImportPaths []string
}
func (*ThriftUsedInfo) ParseThriftIdl ¶
func (info *ThriftUsedInfo) ParseThriftIdl() (rawStructs []*IdlExtractStruct, err error)
type UpdateInfo ¶
type UpdateInfo struct {
Update bool
UpdateCurdFileContent []byte
UpdateIfFileContent []byte
PreMethodNamesMap map[string]struct{}
PreIfMethods []*InterfaceMethod
}
Click to show internal directories.
Click to hide internal directories.