package
0.0.0-20200907144210-fe53453ed391
Repository: https://github.com/yoozoo/protoapi.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
LoadTpl is the function to load template file as string It loads file content from esc embed by default Set environment variable debugTpl to "true" to load template from disk directly.
No description provided by the author
NewProtoEnum create ProtoEnum from descriptor.EnumDescriptorProto.
NewProtoField create ProtoField from descriptor.FieldDescriptorProto.
NewProtoFile create ProtoFile from descriptor.FileDescriptorProto.
NewProtoMessage create ProtoMessage from descriptor.DescriptorProto.
NewProtoMethod create ProtoMethod from descriptor.MethodDescriptorProto.
NewProtoService create ProtoService from descriptor.ServiceDescriptorProto.
No description provided by the author

# Constants

BooleanFieldType datatype string for boolean.
ComErrMsgName is common error message name.
DoubleFieldType datatype string for floating point, it is assumed to be at least of ieee double precision.
No description provided by the author
field.
ErrorTypeMethodOption is error return type option.
FieldRepeatedLabel is the label for repeated data type.
FormatFieldOption is the field type validation field option.
Int32FieldType datatype string for interge 32 bit.
Int64FieldType datatype string for interge 64 bit.
IntFieldType datatype string for interge, it is assumed to be of signed and at least 64 bit.
JavaPackageOption is Java package option constant.
path numbers in FileDescriptorProto (describe proto file).
enum.
field.
nested.
PathSeparator the path seperator used to form the full key (ie, key/sub_key ).
RequiredFieldOption is the required type validation field option.
ServiceAuthOption is service auth option.
No description provided by the author
ServiceCommonErrorOption is service common_error option.
path numbers in ServiceDescriptorProto (describe service).
ServiceTypeMethodOption is service method option.
StringFieldType datatype string for string.

# Variables

FieldOptions is the map of field number and field name in field options.
MethodOptions is the map of field number and field name in method options.
OutputMap the registra for output code type and its associated output plugin.
ServiceOptions is the map of field number and field name in service options.

# Structs

EnumData a structure to represent a enum datatype.
EnumField a enum entry for enum datatype.
GenerateReq is the code-gen request struct passed to generators.
MessageData a structure to represent a message datatype.
MessageField a field for the defined message.
No description provided by the author
No description provided by the author
ProtoEnum is a thin wrapper around descriptor.EnumDescriptorProto.
ProtoField is a thin wrapper around descriptor.FieldDescriptorProto.
ProtoFile is a thin wrapper around descriptor.FileDescriptorProto.
ProtoMessage is a thin wrapper around descriptor.DescriptorProto (Message descriptor).
ProtoMethod is a thin wrapper around descriptor.MethodDescriptorProto.
ProtoOption is a thin wrapper around descriptor.OptionDescriptorProto.
ProtoService is a thin wrapper around descriptor.ServiceDescriptorProto.
No description provided by the author

# Interfaces

No description provided by the author

# Type aliases

CommentMap map comment to message/service/field path => comment.
Option is a structure represents the option declared in a proto file.