Documentation
¶
Index ¶
- func ApplyEnums(w io.Writer, opts Opts, enums []*protogen.Enum) error
- func ApplyEnumsTemplate(f *protogen.GeneratedFile, opts Opts, enums []*protogen.Enum) error
- func ApplyMessages(w io.Writer, opts Opts, msgs []*protogen.Message) error
- func ApplyMessagesTemplate(f *protogen.GeneratedFile, opts Opts, msgs []*protogen.Message) error
- func ApplyTSEnums(w io.Writer, opts TSOpts, enums []*protogen.Enum) error
- func ApplyTemplateTS(f *protogen.GeneratedFile, opts TSOpts, fileEnumInfos []FileEnumInfo) error
- func CreateEnumDescription(en *protogen.Enum, args Opts) *api.EnumDescription
- func ExternalPackageName(fullname, pack string) string
- func GetEnums(msgs []*protogen.Message) []*protogen.Enum
- func GetMessagesToDescribe(opts Opts, msgs []*protogen.Message, services []*protogen.Service) []*protogen.Message
- func TrimLocalPackageName(val, pack string) string
- type FieldMeta
- type FileEnumInfo
- type MessageDescription
- type Opts
- type TSOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyEnumsTemplate ¶ added in v0.17.78
This function is called with a param which contains the entire definition of a method.
func ApplyMessagesTemplate ¶ added in v0.17.78
This function is called with a param which contains the entire definition of a method.
func ApplyTSEnums ¶ added in v0.16.75
func ApplyTemplateTS ¶ added in v0.16.75
func ApplyTemplateTS(f *protogen.GeneratedFile, opts TSOpts, fileEnumInfos []FileEnumInfo) error
This function is called with a param which contains the entire definition of a method.
func CreateEnumDescription ¶
func CreateEnumDescription(en *protogen.Enum, args Opts) *api.EnumDescription
CreateEnumDescription convert enum descriptor to EnumMeta message
func ExternalPackageName ¶ added in v0.17.84
func GetMessagesToDescribe ¶
func TrimLocalPackageName ¶ added in v0.17.84
Types ¶
type FieldMeta ¶ added in v0.17.84
type FieldMeta struct {
Name string
FullName string
Display string
Documentation string
Type string
GoType string
SearchType string
SearchOptions api.SearchOption_Enum
Required bool
RequiredOr []string
Fields []*FieldMeta
EnumDescription *api.EnumDescription
Min int32
Max int32
MinCount int32
MaxCount int32
// field is the original field descriptor
ProtogenField *protogen.Field
EnumDescriptionName string
FieldsDescriptionName string
}
type FileEnumInfo ¶ added in v0.16.75
type MessageDescription ¶ added in v0.17.84
type MessageDescription struct {
Name string
Display string
Fields []*FieldMeta
Documentation string
FullName string
TableSource string
TableHeader []string
// message is the original message descriptor
ProtogenMessage *protogen.Message
Package string
}
func CreateMessageDescription ¶
func CreateMessageDescription(msg *protogen.Message, args Opts) *MessageDescription
CreateMessageDescription convert enum descriptor to EnumMeta message
Click to show internal directories.
Click to hide internal directories.