Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Normalizer ¶
type Normalizer struct {
// contains filtered or unexported fields
}
Normalizer is a normalizer for descriptor protos.
func NewNormalizer ¶
func NewNormalizer(options ...NormalizerOption) *Normalizer
NewNormalizer returns a new Normalizer.
func (*Normalizer) FindDescriptorProto ¶
func (n *Normalizer) FindDescriptorProto(msgDesc protoreflect.Descriptor) (*descriptorpb.DescriptorProto, error)
FindDescriptorProto finds the descriptor proto for the given message descriptor.
func (*Normalizer) Normalize ¶
func (n *Normalizer) Normalize(rootDesc protoreflect.MessageDescriptor) (*descriptorpb.DescriptorProto, error)
Normalize returns the normalized descriptor proto for the given message descriptor.
type NormalizerOption ¶
type NormalizerOption func(*Normalizer)
NormalizerOption is an option for a new Normalizer.
func WithSkipTypes ¶
func WithSkipTypes(skipTypes ...string) NormalizerOption
WithSkipTypes returns a new NormalizerOption that skips the given types.
Click to show internal directories.
Click to hide internal directories.