normalize

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL