Versions in this module Expand all Collapse all v0 v0.0.11 Jul 31, 2024 Changes in this version + const PathParameterSeparatorCSV + const PathParameterSeparatorPipes + const PathParameterSeparatorSSV + const PathParameterSeparatorTSV + func IsWellKnownType(typeName string) bool + type Binding struct + Body *Body + HTTPMethod string + Index int + Method *Method + PathParameters []Parameter + PathTemplate httprule.Template + QueryParameterCustomization QueryParameterCustomization + QueryParameters []QueryParameter + ResponseBody *Body + StreamConfig StreamConfig + func (b *Binding) HasAnyStreamingMethod() bool + func (b *Binding) HasQueryParameters() bool + func (b *Binding) NeedsChunkedTransfer() bool + func (b *Binding) NeedsSSE() bool + func (b *Binding) NeedsWebsocket() bool + func (b *Binding) QueryParameterFilter() *trie.Node + type Body struct + FieldPath FieldPath + func (b Body) AssignableExpr(msgExpr string, currentPackage string) string + func (b Body) AssignableExprPrep(msgExpr string, currentPackage string) string + type Enum struct + File *File + ForcePrefixedName bool + Index int + Outers []string + func (e *Enum) FQEN() string + func (e *Enum) GoType(currentPackage string) string + func (e *Enum) Path() dotpath.Instance + type Field struct + ForcePrefixedName bool + Index int + Message *Message + func (f *Field) FQFN() string + func (f *Field) HasRepeatedLabel() bool + func (f *Field) IsScalarType() bool + func (f *Field) Path() dotpath.Instance + type FieldPath []FieldPathComponent + func (p FieldPath) AssignableExpr(msgExpr string, currentPackage string) string + func (p FieldPath) AssignableExprPrep(msgExpr string, currentPackage string) string + func (p FieldPath) IsNestedProto3() bool + func (p FieldPath) IsOptionalProto3() bool + func (p FieldPath) String() string + func (p FieldPath) Target() *Field + type FieldPathComponent struct + Name string + Target *Field + func (c FieldPathComponent) AssignableExpr() string + func (c FieldPathComponent) ValueExpr() string + type File struct + Enums []*Enum + GeneratedFilenamePrefix string + GoPkg GoPackage + Messages []*Message + Services []*Service + func (f *File) Pkg() string + type GatewayFileLoadOptions struct + FilePattern string + GlobalGatewayConfigFile string + type GoPackage struct + Alias string + Name string + Path string + func (p GoPackage) Standard() bool + func (p GoPackage) String() string + type Message struct + Fields []*Field + File *File + ForcePrefixedName bool + Index int + Outers []string + func (m *Message) FQMN() string + func (m *Message) GoType(currentPackage string) string + func (m *Message) IsMapEntry() bool + func (m *Message) Path() dotpath.Instance + type Method struct + Bindings []*Binding + Index int + RequestType *Message + ResponseType *Message + Service *Service + func (m *Method) FQMN() string + func (m *Method) Path() dotpath.Instance + type Parameter struct + Method *Method + Target *Field + func (p Parameter) ConvertFuncExpr() (string, error) + func (p Parameter) IsEnum() bool + func (p Parameter) IsProto2() bool + func (p Parameter) IsRepeated() bool + type PathParameterSeparator uint8 + func (p *PathParameterSeparator) Set(value string) error + func (p PathParameterSeparator) Separator() rune + func (p PathParameterSeparator) String() string + type QueryParamAlias struct + CustomName bool + FieldPath FieldPath + Name string + type QueryParameter struct + Name string + NameIsAlias bool + func (q QueryParameter) String() string + func (q QueryParameter) Target() *Field + type QueryParameterCustomization struct + Aliases []QueryParamAlias + DisableAutoDiscovery bool + IgnoredFields []FieldPath + type Registry struct + func NewRegistry(options RegistryOptions) *Registry + func (r *Registry) Iterate(cb func(fielPath string, protoFile *File) error) error + func (r *Registry) LoadFromPlugin(gen *protogen.Plugin) error + func (r *Registry) LookupEnum(location, name string) (*Enum, error) + func (r *Registry) LookupFile(name string) (*File, error) + func (r *Registry) LookupMessage(location, name string) (*Message, error) + func (r *Registry) ReserveGoPackageAlias(alias, pkgPath string) bool + func (r *Registry) UnboundExternalHTTPSpecs() []httpspec.EndpointSpec + type RegistryOptions struct + AllowDeleteBody bool + GatewayFileLoadOptions GatewayFileLoadOptions + GenerateUnboundMethods bool + SearchPath string + Standalone bool + WarnOnUnboundMethods bool + func DefaultRegistryOptions() RegistryOptions + func (r *RegistryOptions) AddFlags(flags *flag.FlagSet) + type ResponseFile struct + GoPkg GoPackage + type Service struct + File *File + ForcePrefixedName bool + Index int + Methods []*Method + func (s *Service) ClientConstructorName() string + func (s *Service) FQSN() string + func (s *Service) InstanceName() string + func (s *Service) Path() dotpath.Instance + type StreamConfig struct + AllowChunkedTransfer bool + AllowSSE bool + AllowWebsocket bool v0.0.1-alpha May 18, 2024