perfpb

package
v0.0.0-...-683b059 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package perfpb defines helpers for adding perf.Values to gRPC calls.

Index

Constants

This section is empty.

Variables

View Source
var (
	Direction_name = map[int32]string{
		0: "SMALLER_IS_BETTER",
		1: "BIGGER_IS_BETTER",
	}
	Direction_value = map[string]int32{
		"SMALLER_IS_BETTER": 0,
		"BIGGER_IS_BETTER":  1,
	}
)

Enum value maps for Direction.

View Source
var File_values_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Direction

type Direction int32
const (
	Direction_SMALLER_IS_BETTER Direction = 0
	Direction_BIGGER_IS_BETTER  Direction = 1
)

func (Direction) Descriptor

func (Direction) Descriptor() protoreflect.EnumDescriptor

func (Direction) Enum

func (x Direction) Enum() *Direction

func (Direction) EnumDescriptor deprecated

func (Direction) EnumDescriptor() ([]byte, []int)

Deprecated: Use Direction.Descriptor instead.

func (Direction) Number

func (x Direction) Number() protoreflect.EnumNumber

func (Direction) String

func (x Direction) String() string

func (Direction) Type

type Value

type Value struct {
	Name      string    `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Variant   string    `protobuf:"bytes,2,opt,name=variant,proto3" json:"variant,omitempty"`
	Unit      string    `protobuf:"bytes,3,opt,name=unit,proto3" json:"unit,omitempty"`
	Direction Direction `protobuf:"varint,4,opt,name=direction,proto3,enum=tast.common.perf.perfpb.Direction" json:"direction,omitempty"`
	Multiple  bool      `protobuf:"varint,5,opt,name=multiple,proto3" json:"multiple,omitempty"`
	Value     []float64 `protobuf:"fixed64,6,rep,packed,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Value) Descriptor deprecated

func (*Value) Descriptor() ([]byte, []int)

Deprecated: Use Value.ProtoReflect.Descriptor instead.

func (*Value) GetDirection

func (x *Value) GetDirection() Direction

func (*Value) GetMultiple

func (x *Value) GetMultiple() bool

func (*Value) GetName

func (x *Value) GetName() string

func (*Value) GetUnit

func (x *Value) GetUnit() string

func (*Value) GetValue

func (x *Value) GetValue() []float64

func (*Value) GetVariant

func (x *Value) GetVariant() string

func (*Value) ProtoMessage

func (*Value) ProtoMessage()

func (*Value) ProtoReflect

func (x *Value) ProtoReflect() protoreflect.Message

func (*Value) Reset

func (x *Value) Reset()

func (*Value) String

func (x *Value) String() string

type Values

type Values struct {
	Values []*Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*Values) Descriptor deprecated

func (*Values) Descriptor() ([]byte, []int)

Deprecated: Use Values.ProtoReflect.Descriptor instead.

func (*Values) GetValues

func (x *Values) GetValues() []*Value

func (*Values) ProtoMessage

func (*Values) ProtoMessage()

func (*Values) ProtoReflect

func (x *Values) ProtoReflect() protoreflect.Message

func (*Values) Reset

func (x *Values) Reset()

func (*Values) String

func (x *Values) String() string

Jump to

Keyboard shortcuts

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