protofunc

package
v0.0.0-...-d0bb578 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 GetProtoFile

func GetProtoFile(name string) *ggdescriptor.File

func HaskellType

func HaskellType(pkg string, f *descriptor.FieldDescriptorProto) string

func HttpPathsAdditionalBindings

func HttpPathsAdditionalBindings(m *descriptor.MethodDescriptorProto) []string

func Int64FieldExtension

func Int64FieldExtension(fieldID int32, f *descriptor.FieldDescriptorProto) int64

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 IsTimestampPackage(s string) bool

func JsSuffixReservedKeyword

func JsSuffixReservedKeyword(s string) string

func LeadingComment

func LeadingComment(i interface{}) string

func LeadingDetachedComments

func LeadingDetachedComments(i interface{}) []string

func NamespacedFlowType

func NamespacedFlowType(s string) string

func SetRegistry

func SetRegistry(reg *ggdescriptor.Registry)

func ShortType

func ShortType(s string) string

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.

Jump to

Keyboard shortcuts

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