converter

package
v0.0.0-...-3db8dec Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

type Comments map[string]string

func ParseComments

func ParseComments(fd *descriptor.FileDescriptorProto) Comments

func (Comments) Get

func (c Comments) Get(path string) string

type DimensionField

type DimensionField struct {
	Name               string `json:"name,omitempty"`
	Type               string `json:"type,omitempty"`
	MultiValueHandling string `json:"multiValueHandling,omitempty"`
	CreateBitmapIndex  bool   `json:"createBitmapIndex,omitempty"`
}

type DimensionSpec

type DimensionSpec struct {
	Dimensions          []*DimensionField `json:"dimensions,omitempty"`
	DimensionExclusions []string          `json:"dimensionExclusions,omitempty"`
}

type FlattenField

type FlattenField struct {
	Type       string `json:"type,omitempty"`
	Name       string `json:"name,omitempty"`
	Expression string `json:"expr,omitempty"`
}

type FlattenSpec

type FlattenSpec struct {
	FlattenFields     []*FlattenField `json:"fields,omitempty"`
	UseFieldDiscovery bool            `json:"useFieldDiscovery"`
}

type GranularitySpec

type GranularitySpec struct {
	Type      string    `json:"type,omitempty"`
	Segment   string    `json:"segmentGranularity,omitempty"`
	Query     string    `json:"queryGranularity,omitempty"`
	Rollup    bool      `json:"rollup"`
	Intervals []*string `json:"intervals"`
}

type MetricField

type MetricField struct {
	MetricFieldName    string `json:"name,omitempty"`
	ApproxType         string `json:"type,omitempty"`
	IsInputThetaSketch bool   `json:"isInputThetaSketch"`
	FieldName          string `json:"fieldName,omitempty"`
	Size               int64  `json:"size,omitempty"`
}

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

type TimestampField struct {
	FieldName    string `json:"column,omitempty"`
	Format       string `json:"format,omitempty"`
	MissingValue string `json:"missingValue,omitempty"`
}

Jump to

Keyboard shortcuts

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