Documentation ¶
Overview ¶
Package perfpb defines helpers for adding perf.Values to gRPC calls.
Index ¶
- Variables
- type Direction
- type Value
- func (*Value) Descriptor() ([]byte, []int)deprecated
- func (x *Value) GetDirection() Direction
- func (x *Value) GetMultiple() bool
- func (x *Value) GetName() string
- func (x *Value) GetUnit() string
- func (x *Value) GetValue() []float64
- func (x *Value) GetVariant() string
- func (*Value) ProtoMessage()
- func (x *Value) ProtoReflect() protoreflect.Message
- func (x *Value) Reset()
- func (x *Value) String() string
- type Values
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
func (Direction) Descriptor ¶
func (Direction) Descriptor() protoreflect.EnumDescriptor
func (Direction) EnumDescriptor
deprecated
func (Direction) Number ¶
func (x Direction) Number() protoreflect.EnumNumber
func (Direction) Type ¶
func (Direction) Type() protoreflect.EnumType
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) GetDirection ¶
func (*Value) GetMultiple ¶
func (*Value) GetVariant ¶
func (*Value) ProtoMessage ¶
func (*Value) ProtoMessage()
func (*Value) ProtoReflect ¶
func (x *Value) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Values) ProtoMessage()
func (*Values) ProtoReflect ¶
func (x *Values) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.