Documentation ¶
Index ¶
- func Convert(req *plugin.CodeGeneratorRequest) (*plugin.CodeGeneratorResponse, error)
- func ConvertFrom(rd io.Reader) (*plugin.CodeGeneratorResponse, error)
- type Comments
- type DimensionField
- type DimensionSpec
- type FlattenField
- type FlattenSpec
- type GranularitySpec
- type MetricField
- type ProtoPackage
- type TimestampField
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Convert ¶
func Convert(req *plugin.CodeGeneratorRequest) (*plugin.CodeGeneratorResponse, error)
func ConvertFrom ¶
func ConvertFrom(rd io.Reader) (*plugin.CodeGeneratorResponse, error)
ConvertFrom converts input from protoc to a CodeGeneratorRequest and starts conversion Returning a CodeGeneratorResponse containing either an error or the results of converting the given proto
Types ¶
type Comments ¶
func ParseComments ¶
func ParseComments(fd *descriptor.FileDescriptorProto) Comments
type DimensionField ¶
type DimensionSpec ¶
type DimensionSpec struct { Dimensions []*DimensionField `json:"dimensions,omitempty"` DimensionExclusions []string `json:"dimensionExclusions,omitempty"` }
type FlattenField ¶
type FlattenSpec ¶
type FlattenSpec struct { FlattenFields []*FlattenField `json:"fields,omitempty"` UseFieldDiscovery bool `json:"useFieldDiscovery"` }
type GranularitySpec ¶
type MetricField ¶
type ProtoPackage ¶
type ProtoPackage struct {
// contains filtered or unexported fields
}
ProtoPackage describes a package of Protobuf, which is an container of message types.
type TimestampField ¶
Click to show internal directories.
Click to hide internal directories.