Versions in this module Expand all Collapse all v0 v0.3.0 Jul 20, 2019 Changes in this version + const Version + var GoModuleDirName = "github.com/wx-shi/kratos" + var GoModuleImportPath = "github.com/wx-shi/kratos" + func DeduceGenPkgName(genFiles []*descriptor.FileDescriptorProto) (string, error) + func GetFieldRequired(f *descriptor.FieldDescriptorProto, reg *typemap.Registry, ...) bool + func GetFormOrJSONName(field *descriptor.FieldDescriptorProto) string + func GetJSONFieldName(field *descriptor.FieldDescriptorProto) string + func IsMap(field *descriptor.FieldDescriptorProto, reg *typemap.Registry) bool + func IsRepeated(field *descriptor.FieldDescriptorProto) bool + func IsScalar(field *descriptor.FieldDescriptorProto) bool + func MakeIndentStr(i int) string + func ParseBMMethod(method *descriptor.MethodDescriptorProto) (*googleMethodOptionInfo, error) + func ParseGeneratorParams(parameter string, result GeneratorParamsInterface) error + type Base struct + Deps map[string]string + GenFiles []*descriptor.FileDescriptorProto + GenPkgName string + ImportPrefix string + Output *bytes.Buffer + PackageName string + Params *ParamsBase + Reg *typemap.Registry + func (t *Base) DeduceDeps(file *descriptor.FileDescriptorProto) map[string]string + func (t *Base) FormattedOutput() string + func (t *Base) GetHttpInfoCached(file *descriptor.FileDescriptorProto, ...) *HTTPInfo + func (t *Base) GoPackageNameForProtoFile(file *descriptor.FileDescriptorProto) string + func (t *Base) GoTypeName(protoName string) string + func (t *Base) IsOwnPackage(protoName string) bool + func (t *Base) P(args ...string) + func (t *Base) PrintComments(comments typemap.DefinitionComments) bool + func (t *Base) RegisterPackageName(name string) (alias string) + func (t *Base) Setup(in *plugin.CodeGeneratorRequest, paramsOpt ...GeneratorParamsInterface) + func (t *Base) ShouldGenForMethod(file *descriptor.FileDescriptorProto, ...) bool + func (t *Base) SubstituteImportPath(importPath string, importFile string) string + type BasicParam struct + func (b *BasicParam) GetBase() *ParamsBase + func (b *BasicParam) SetParam(key string, value string) error + type GeneratorParamsInterface interface + GetBase func() *ParamsBase + SetParam func(key string, value string) error + type HTTPInfo struct + Description string + HasExplicitHTTPPath bool + HttpMethod string + IsLegacyPath bool + LegacyPath string + NewPath string + Path string + Title string + func GetHTTPInfo(file *descriptor.FileDescriptorProto, ...) *HTTPInfo + type ParamsBase struct + ExplicitHTTP bool + ImportMap map[string]string + ImportPrefix string