Documentation ¶
Index ¶
- type Collector
- func (c *Collector) CollectUsageFromJSON(topLevelType protoreflect.FullName, data string, types *protoregistry.Types) error
- func (c *Collector) CollectUsageFromJSONFile(topLevelType protoreflect.FullName, file string, types *protoregistry.Types) error
- func (c *Collector) CollectUsageFromProtoBytes(topLevelType protoreflect.FullName, data []byte, types *protoregistry.Types) error
- func (c *Collector) CollectUsageFromProtoFile(topLevelType protoreflect.FullName, file string, types *protoregistry.Types) error
- func (c *Collector) CollectUsageFromProtoMessage(msg protoreflect.Message, types *protoregistry.Types) error
- func (c *Collector) Walk(push WalkFunc, pop WalkFunc)
- type CollectorConfig
- type WalkFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
func NewCollector ¶
func NewCollector(config CollectorConfig) *Collector
func (*Collector) CollectUsageFromJSON ¶
func (c *Collector) CollectUsageFromJSON(topLevelType protoreflect.FullName, data string, types *protoregistry.Types) error
func (*Collector) CollectUsageFromJSONFile ¶
func (c *Collector) CollectUsageFromJSONFile(topLevelType protoreflect.FullName, file string, types *protoregistry.Types) error
func (*Collector) CollectUsageFromProtoBytes ¶
func (c *Collector) CollectUsageFromProtoBytes(topLevelType protoreflect.FullName, data []byte, types *protoregistry.Types) error
func (*Collector) CollectUsageFromProtoFile ¶
func (c *Collector) CollectUsageFromProtoFile(topLevelType protoreflect.FullName, file string, types *protoregistry.Types) error
func (*Collector) CollectUsageFromProtoMessage ¶
func (c *Collector) CollectUsageFromProtoMessage(msg protoreflect.Message, types *protoregistry.Types) error
type CollectorConfig ¶
type CollectorConfig struct {
RemoveListIndexing bool
}
Click to show internal directories.
Click to hide internal directories.