Versions in this module Expand all Collapse all v0 v0.18.3-beta.1 Aug 20, 2020 v0.18.2 Aug 20, 2020 Changes in this version + func NewProtoFile() *generator.DefaultFileType + func NewProtobufNamer() *protobufNamer + func RewriteGeneratedGogoProtobufFile(name string, extractFn ExtractFunc, optionalFn OptionalFunc, header []byte) error + func RewriteTypesWithProtobufStructTags(name string, structTags map[string]map[string]string) error + func Run(g *Generator) + type ExtractFunc func(*ast.TypeSpec) bool + type Generator struct + APIMachineryPackages string + Clean bool + Common args.GeneratorArgs + Conditional string + DropEmbeddedFields string + KeepGogoproto bool + OnlyIDL bool + OutputBase string + Packages string + ProtoImport []string + SkipGeneratedRewrite bool + VendorOutputBase string + func New() *Generator + func (g *Generator) BindFlags(flag *flag.FlagSet) + type ImportTracker struct + func NewImportTracker(local types.Name, typesToAdd ...*types.Type) *ImportTracker + func (tracker *ImportTracker) AddNullable() + type OptionalFunc func(name string) bool + type ProtobufFromGoNamer interface + GoNameToProtoName func(name types.Name) types.Name + type ProtobufLocator interface + CastTypeName func(name types.Name) string + GoTypeForName func(name types.Name) *types.Type + ProtoTypeFor func(t *types.Type) (*types.Type, error)