Versions in this module Expand all Collapse all v1 v1.9.2 Jul 15, 2021 v1.9.1 Jul 15, 2021 Changes in this version + type ErrUnexpectedType struct + ShouldBeEnum bool + URL string + func (e *ErrUnexpectedType) Error() string + type MessageRegistry struct + func NewMessageRegistryWithDefaults() *MessageRegistry + func (r *MessageRegistry) AddBaseUrlForElement(baseUrl, packageOrTypeName string) + func (r *MessageRegistry) AddEnum(url string, ed *desc.EnumDescriptor) error + func (r *MessageRegistry) AddFile(baseUrl string, fd *desc.FileDescriptor) + func (r *MessageRegistry) AddMessage(url string, md *desc.MessageDescriptor) error + func (r *MessageRegistry) ComputeURL(d desc.Descriptor) string + func (r *MessageRegistry) ComputeUrl(d desc.Descriptor) string + func (r *MessageRegistry) EnumAsPType(ed *desc.EnumDescriptor) *ptype.Enum + func (r *MessageRegistry) FindEnumTypeByUrl(url string) (*desc.EnumDescriptor, error) + func (r *MessageRegistry) FindMessageTypeByUrl(url string) (*desc.MessageDescriptor, error) + func (r *MessageRegistry) MarshalAny(m proto.Message) (*any.Any, error) + func (r *MessageRegistry) MessageAsPType(md *desc.MessageDescriptor) *ptype.Type + func (r *MessageRegistry) Resolve(typeUrl string) (proto.Message, error) + func (r *MessageRegistry) ResolveApiIntoServiceDescriptor(a *api.Api) (*desc.ServiceDescriptor, error) + func (r *MessageRegistry) ServiceAsApi(sd *desc.ServiceDescriptor) *api.Api + func (r *MessageRegistry) UnmarshalAny(any *any.Any) (proto.Message, error) + func (r *MessageRegistry) WithDefaultBaseUrl(baseUrl string) *MessageRegistry + func (r *MessageRegistry) WithFetcher(fetcher TypeFetcher) *MessageRegistry + func (r *MessageRegistry) WithMessageFactory(mf *dynamic.MessageFactory) *MessageRegistry + type TypeFetcher func(url string, enum bool) (proto.Message, error) + func CachingTypeFetcher(fetcher TypeFetcher) TypeFetcher + func HttpTypeFetcher(transport http.RoundTripper, szLimit, parLimit int) TypeFetcher