Documentation ¶
Index ¶
- type ProtoJSON
- type Resolver
- type TypeRegistry
- func (r *TypeRegistry) AddFileDescriptor(fds *descriptorpb.FileDescriptorSet) error
- func (r *TypeRegistry) AddMessage(msg protoreflect.MessageDescriptor)
- func (r *TypeRegistry) FindMessageByName(field protoreflect.FullName) (protoreflect.MessageType, error)
- func (r *TypeRegistry) FindMessageByURL(url string) (protoreflect.MessageType, error)
- func (r *TypeRegistry) LoadExternalProtobufs(src string) error
- func (r *TypeRegistry) LoadProtoFromFile(fileName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProtoJSON ¶
type ProtoJSON struct { protojson.MarshalOptions protojson.UnmarshalOptions }
func NewProtoJSON ¶
type Resolver ¶
type Resolver interface { protoregistry.ExtensionTypeResolver protoregistry.MessageTypeResolver }
type TypeRegistry ¶
type TypeRegistry struct { // leave nil, will panic if used. protoregistry.ExtensionTypeResolver // contains filtered or unexported fields }
func NewTypeRegistry ¶
func NewTypeRegistry() *TypeRegistry
func (*TypeRegistry) AddFileDescriptor ¶
func (r *TypeRegistry) AddFileDescriptor(fds *descriptorpb.FileDescriptorSet) error
func (*TypeRegistry) AddMessage ¶
func (r *TypeRegistry) AddMessage(msg protoreflect.MessageDescriptor)
func (*TypeRegistry) FindMessageByName ¶
func (r *TypeRegistry) FindMessageByName(field protoreflect.FullName) (protoreflect.MessageType, error)
func (*TypeRegistry) FindMessageByURL ¶
func (r *TypeRegistry) FindMessageByURL(url string) (protoreflect.MessageType, error)
func (*TypeRegistry) LoadExternalProtobufs ¶
func (r *TypeRegistry) LoadExternalProtobufs(src string) error
func (*TypeRegistry) LoadProtoFromFile ¶
func (r *TypeRegistry) LoadProtoFromFile(fileName string) error
Click to show internal directories.
Click to hide internal directories.