Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Scheme)
Option describes a functional configuration option for a Scheme value
type Scheme ¶
type Scheme struct {
// contains filtered or unexported fields
}
Scheme implements a protobuf type registry that can be used to initialize dynamic messages by name
func New ¶
New initializes a new Scheme value. A given Scheme value can include multiple service type registrations.
func (*Scheme) New ¶
func (s *Scheme) New(t string) (protoreflect.ProtoMessage, error)
New initializes a new proto message of the given type
func (*Scheme) RegisterType ¶
func (s *Scheme) RegisterType(desc protoreflect.MessageDescriptor)
RegisterType registers the specified message with the current Scheme
Click to show internal directories.
Click to hide internal directories.