Documentation ¶
Index ¶
- Variables
- func BoolFieldExtension(fieldID int32, f *descriptor.FieldDescriptorProto) bool
- func BoolMethodOptionsExtension(fieldID int32, f *descriptor.MethodDescriptorProto) bool
- func FieldMapKeyType(f *descriptor.FieldDescriptorProto, m *descriptor.DescriptorProto) *descriptor.FieldDescriptorProto
- func FieldMapValType(f *descriptor.FieldDescriptorProto, m *descriptor.DescriptorProto) *descriptor.FieldDescriptorProto
- func GetEnumValue(f []*descriptor.EnumDescriptorProto, name string) []*descriptor.EnumValueDescriptorProto
- func GetMessageType(f *descriptor.FileDescriptorProto, name string) *ggdescriptor.Message
- func GetProtoFile(name string) *ggdescriptor.File
- func GoType(pkg string, f *descriptor.FieldDescriptorProto, ...) string
- func GoTypeWithGoPackage(p *descriptor.FileDescriptorProto, f *descriptor.FieldDescriptorProto) string
- func GoZeroValue(f *descriptor.FieldDescriptorProto) string
- func HaskellType(pkg string, f *descriptor.FieldDescriptorProto) string
- func HttpBody(m *descriptor.MethodDescriptorProto) string
- func HttpPath(m *descriptor.MethodDescriptorProto) string
- func HttpPathsAdditionalBindings(m *descriptor.MethodDescriptorProto) []string
- func HttpVerb(m *descriptor.MethodDescriptorProto) string
- func Int64FieldExtension(fieldID int32, f *descriptor.FieldDescriptorProto) int64
- func IsFieldMap(f *descriptor.FieldDescriptorProto, m *descriptor.DescriptorProto) bool
- func IsFieldMessage(f *descriptor.FieldDescriptorProto) bool
- func IsFieldMessageTimeStamp(f *descriptor.FieldDescriptorProto) bool
- func IsFieldRepeated(f *descriptor.FieldDescriptorProto) bool
- func IsTimestampPackage(s string) bool
- func JsSuffixReservedKeyword(s string) string
- func JsType(f *descriptor.FieldDescriptorProto) string
- func LeadingComment(i interface{}) string
- func LeadingDetachedComments(i interface{}) []string
- func NamespacedFlowType(s string) string
- func SetRegistry(reg *ggdescriptor.Registry)
- func ShortType(s string) string
- func StringFieldExtension(fieldID int32, f *descriptor.FieldDescriptorProto) string
- func StringMethodOptionsExtension(fieldID int32, f *descriptor.MethodDescriptorProto) string
- func TrailingComment(i interface{}) string
- func UrlHasVarsFromMessage(path string, d *ggdescriptor.Message) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultProtoFmap = template.FuncMap{ "getProtoFile": GetProtoFile, "getMessageType": GetMessageType, "getEnumValue": GetEnumValue, "isFieldMessage": IsFieldMessage, "isFieldMessageTimeStamp": IsFieldMessageTimeStamp, "isFieldRepeated": IsFieldRepeated, "haskellType": HaskellType, "goType": GoType, "goZeroValue": GoZeroValue, "goTypeWithPackage": GoTypeWithGoPackage, "goTypeWithGoPackage": GoTypeWithGoPackage, "jsType": JsType, "jsSuffixReserved": JsSuffixReservedKeyword, "httpVerb": HttpVerb, "httpPath": HttpPath, "httpPathsAdditionalBindings": HttpPathsAdditionalBindings, "httpBody": HttpBody, "shortType": ShortType, "urlHasVarsFromMessage": UrlHasVarsFromMessage, "leadingComment": LeadingComment, "trailingComment": TrailingComment, "leadingDetachedComments": LeadingDetachedComments, "stringFieldExtension": StringFieldExtension, "int64FieldExtension": Int64FieldExtension, "stringMethodOptionsExtension": StringMethodOptionsExtension, "boolMethodOptionsExtension": BoolMethodOptionsExtension, "boolFieldExtension": BoolFieldExtension, "isFieldMap": IsFieldMap, "fieldMapKeyType": FieldMapKeyType, } )
View Source
var (
PathMap map[interface{}]*descriptor.SourceCodeInfo_Location
)
Functions ¶
func BoolFieldExtension ¶
func BoolFieldExtension(fieldID int32, f *descriptor.FieldDescriptorProto) bool
func BoolMethodOptionsExtension ¶
func BoolMethodOptionsExtension(fieldID int32, f *descriptor.MethodDescriptorProto) bool
func FieldMapKeyType ¶
func FieldMapKeyType(f *descriptor.FieldDescriptorProto, m *descriptor.DescriptorProto) *descriptor.FieldDescriptorProto
func FieldMapValType ¶
func FieldMapValType(f *descriptor.FieldDescriptorProto, m *descriptor.DescriptorProto) *descriptor.FieldDescriptorProto
func GetEnumValue ¶
func GetEnumValue(f []*descriptor.EnumDescriptorProto, name string) []*descriptor.EnumValueDescriptorProto
func GetMessageType ¶
func GetMessageType(f *descriptor.FileDescriptorProto, name string) *ggdescriptor.Message
func GetProtoFile ¶
func GetProtoFile(name string) *ggdescriptor.File
func GoType ¶
func GoType(pkg string, f *descriptor.FieldDescriptorProto, p *descriptor.FileDescriptorProto) string
func GoTypeWithGoPackage ¶
func GoTypeWithGoPackage(p *descriptor.FileDescriptorProto, f *descriptor.FieldDescriptorProto) string
func GoZeroValue ¶
func GoZeroValue(f *descriptor.FieldDescriptorProto) string
func HaskellType ¶
func HaskellType(pkg string, f *descriptor.FieldDescriptorProto) string
func HttpBody ¶
func HttpBody(m *descriptor.MethodDescriptorProto) string
func HttpPath ¶
func HttpPath(m *descriptor.MethodDescriptorProto) string
func HttpPathsAdditionalBindings ¶
func HttpPathsAdditionalBindings(m *descriptor.MethodDescriptorProto) []string
func HttpVerb ¶
func HttpVerb(m *descriptor.MethodDescriptorProto) string
func Int64FieldExtension ¶
func Int64FieldExtension(fieldID int32, f *descriptor.FieldDescriptorProto) int64
func IsFieldMap ¶
func IsFieldMap(f *descriptor.FieldDescriptorProto, m *descriptor.DescriptorProto) bool
func IsFieldMessage ¶
func IsFieldMessage(f *descriptor.FieldDescriptorProto) bool
func IsFieldMessageTimeStamp ¶
func IsFieldMessageTimeStamp(f *descriptor.FieldDescriptorProto) bool
func IsFieldRepeated ¶
func IsFieldRepeated(f *descriptor.FieldDescriptorProto) bool
func IsTimestampPackage ¶
func JsSuffixReservedKeyword ¶
func JsType ¶
func JsType(f *descriptor.FieldDescriptorProto) string
func LeadingComment ¶
func LeadingComment(i interface{}) string
func LeadingDetachedComments ¶
func LeadingDetachedComments(i interface{}) []string
func NamespacedFlowType ¶
func SetRegistry ¶
func SetRegistry(reg *ggdescriptor.Registry)
func StringFieldExtension ¶
func StringFieldExtension(fieldID int32, f *descriptor.FieldDescriptorProto) string
func StringMethodOptionsExtension ¶
func StringMethodOptionsExtension(fieldID int32, f *descriptor.MethodDescriptorProto) string
func TrailingComment ¶
func TrailingComment(i interface{}) string
func UrlHasVarsFromMessage ¶
func UrlHasVarsFromMessage(path string, d *ggdescriptor.Message) bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.