plugin

package
v1.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnabledEnumErrorCode

func EnabledEnumErrorCode(e *protogen.Enum) bool

func EnabledEnumGqlGen

func EnabledEnumGqlGen(e *protogen.Enum) bool

func EnabledEnumJsonMarshal

func EnabledEnumJsonMarshal(e *protogen.Enum) bool

func EnabledEnumNumOrder

func EnabledEnumNumOrder(e *protogen.Enum) bool

func EnabledEnumStringer

func EnabledEnumStringer(e *protogen.Enum) bool

func EnabledExtGen

func EnabledExtGen(e *protogen.Enum) bool

func EnabledFileEnumGqlGen

func EnabledFileEnumGqlGen(f *protogen.File) bool

func EnabledGoEnumPrefix

func EnabledGoEnumPrefix(f *protogen.File, e *protogen.Enum) bool

func EnabledGoEnumValueMap

func EnabledGoEnumValueMap(e *protogen.Enum) bool

func FileEnabledExtGen

func FileEnabledExtGen(f *protogen.File) bool

func FileEnabledGqlGenAll

func FileEnabledGqlGenAll(f *protogen.File) bool

func GetEnumType

func GetEnumType(e *protogen.Enum) string

func GetEnumValueCN

func GetEnumValueCN(ev *protogen.EnumValue) string

func TurnOffEnumErrorCode

func TurnOffEnumErrorCode(e *protogen.Enum)

func TurnOffEnumGqlGen

func TurnOffEnumGqlGen(e *protogen.Enum)

func TurnOffEnumJsonMarshal

func TurnOffEnumJsonMarshal(e *protogen.Enum)

func TurnOffEnumNumOrder

func TurnOffEnumNumOrder(e *protogen.Enum)

func TurnOffFileEnumGqlGen

func TurnOffFileEnumGqlGen(f *protogen.File)

func TurnOffGoEnumValueMap

func TurnOffGoEnumValueMap(e *protogen.Enum)

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

func NewBuilder

func NewBuilder(gen *protogen.Plugin) *Builder

func (*Builder) Generate

func (b *Builder) Generate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL