Versions in this module Expand all Collapse all v1 v1.0.4 Oct 31, 2022 v1.0.3 Oct 31, 2022 v1.0.1 Apr 21, 2020 v1.0.0 Jun 21, 2019 Changes in this version + const OptionDartPackage + var ReservedNames = []string + func CamelCase(s string) string + func ParsePath(p string) []string + func Sanitize(s string) string + type ByKey SortedParsedQueryString + func (a ByKey) Len() int + func (a ByKey) Less(i, j int) bool + func (a ByKey) Swap(i, j int) + type Enum struct + Comment string + File *File + Filename string + Index int + Name string + Package string + Registry *Registry + Type *descriptor.EnumDescriptorProto + Values []*EnumValue + func NewEnum(d *descriptor.EnumDescriptorProto, f *File, index int) *Enum + func (e *Enum) String() string + type EnumValue struct + Enum *Enum + Name string + Number int32 + Registry *Registry + Type *descriptor.EnumValueDescriptorProto + func NewEnumValue(d *descriptor.EnumValueDescriptorProto, e *Enum, r *Registry) *EnumValue + type Enums []*Enum + func (es *Enums) Add(ne *Enum) + func (es *Enums) Get(name string) (*Enum, bool) + type Field struct + IsComplex bool + Message *Message + Name string + Registry *Registry + Type *descriptor.FieldDescriptorProto + func NewField(f *descriptor.FieldDescriptorProto, m *Message, r *Registry) *Field + func (f *Field) IsBytes() bool + func (f *Field) IsEnum() bool + func (f *Field) IsIntermediateMap() bool + func (f *Field) IsMessage() bool + func (f *Field) IsRepeated() bool + type FieldMetadata struct + Name string + ProtoKind descriptor.FieldDescriptorProto_Type + Type string + func (f *FieldMetadata) GetType() string + type FieldMetadatas []FieldMetadata + func (fmds *FieldMetadatas) Generate() string + func (fmds *FieldMetadatas) GetPath() string + type Fields []*Field + type File struct + Enums []*Enum + Messages []*Message + Name string + Options map[string]string + Package string + Registry *Registry + Type *descriptor.FileDescriptorProto + func NewFile(f *descriptor.FileDescriptorProto, r *Registry) *File + type Files []*File + func (fs *Files) Add(f *File) + func (fs *Files) Get(key string) (*File, bool) + type Message struct + Comment string + Fields Fields + File *File + Filename string + Index int + Package string + Registry *Registry + Type *descriptor.DescriptorProto + func NewMessage(d *descriptor.DescriptorProto, f *File, index int) *Message + func (m *Message) GetFieldType(path string) *FieldMetadatas + func (m *Message) Name() string + func (m *Message) String() string + type Messages []*Message + func (ms *Messages) Add(m *Message) + func (ms *Messages) Get(key string) (*Message, bool) + type Method struct + InputType *descriptor.DescriptorProto + Name string + OutputType *descriptor.DescriptorProto + Package string + RESTBody string + RESTMethod string + RESTPath string + RESTPathVars PathParams + RESTQueryString QueryStringParams + Registry *Registry + Type *descriptor.MethodDescriptorProto + func (m *Method) FullName() string + func (m *Method) HarmonizedRESTPath() string + func (m *Method) HasBodyMapping() bool + func (m *Method) HasMethodMap() bool + func (m *Method) HasPathParamsMapping() bool + func (m *Method) HasQueryStringMapping() bool + func (m *Method) InputTypeName() string + func (m *Method) OutputTypeName() string + type Methods []*Method + func (ms *Methods) Add(m *Method) + func (ms *Methods) Get(key string) (*Method, bool) + type PathParam struct + FieldRaw string + FieldSanitized string + Metadata *FieldMetadatas + N int + func NewPathParam(field string) (*PathParam, error) + type PathParams []PathParam + type QSParameter struct + Field string + Key string + Metadata *FieldMetadatas + Type string + type QueryStringKV struct + Key string + Values []string + type QueryStringParam struct + Converter string + Field string + type QueryStringParams []QSParameter + func NewQueryStringParams(definition string) (*QueryStringParams, error) + func (q *QueryStringParams) GetParamForKey(key string) *QSParameter + type Registry struct + Enums Enums + Files Files + Messages Messages + Package string + RootFile *File + Service *Service + func New(r *plugin.CodeGeneratorRequest) *Registry + type Service struct + BaseURI string + Comment string + File *File + GoPackage string + Imports []string + Index int + Methods Methods + Name string + Package string + Registry *Registry + TargetPackage string + Type *descriptor.ServiceDescriptorProto + Version string + func (s *Service) GetMappedMethods() []*Method + func (s *Service) HasServiceMapExtension() bool + func (s *Service) RegisterMethod(method *descriptor.MethodDescriptorProto) + func (s *Service) ServiceType() string + type SortedParsedQueryString []QueryStringKV