proto

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Default_ExponentialBuckets_Base float32 = 2
View Source
const Default_ExponentialBuckets_NumBuckets uint32 = 20
View Source
const Default_ExponentialBuckets_ScaleFactor float32 = 1

Variables

This section is empty.

Functions

This section is empty.

Types

type Dist

type Dist struct {
	// Types that are valid to be assigned to Buckets:
	//	*Dist_ExplicitBuckets
	//	*Dist_ExponentialBuckets
	Buckets              isDist_Buckets `protobuf_oneof:"buckets"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

Dist defines a Distribution data type.

func (*Dist) Descriptor

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

func (*Dist) GetBuckets

func (m *Dist) GetBuckets() isDist_Buckets

func (*Dist) GetExplicitBuckets

func (m *Dist) GetExplicitBuckets() string

func (*Dist) GetExponentialBuckets

func (m *Dist) GetExponentialBuckets() *ExponentialBuckets

func (*Dist) ProtoMessage

func (*Dist) ProtoMessage()

func (*Dist) Reset

func (m *Dist) Reset()

func (*Dist) String

func (m *Dist) String() string

func (*Dist) XXX_DiscardUnknown

func (m *Dist) XXX_DiscardUnknown()

func (*Dist) XXX_Marshal

func (m *Dist) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Dist) XXX_Merge

func (dst *Dist) XXX_Merge(src proto.Message)

func (*Dist) XXX_OneofFuncs

func (*Dist) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*Dist) XXX_Size

func (m *Dist) XXX_Size() int

func (*Dist) XXX_Unmarshal

func (m *Dist) XXX_Unmarshal(b []byte) error

type Dist_ExplicitBuckets

type Dist_ExplicitBuckets struct {
	ExplicitBuckets string `protobuf:"bytes,1,opt,name=explicit_buckets,json=explicitBuckets,oneof"`
}

type Dist_ExponentialBuckets

type Dist_ExponentialBuckets struct {
	ExponentialBuckets *ExponentialBuckets `protobuf:"bytes,2,opt,name=exponential_buckets,json=exponentialBuckets,oneof"`
}

type ExponentialBuckets

type ExponentialBuckets struct {
	ScaleFactor          *float32 `protobuf:"fixed32,1,opt,name=scale_factor,json=scaleFactor,def=1" json:"scale_factor,omitempty"`
	Base                 *float32 `protobuf:"fixed32,2,opt,name=base,def=2" json:"base,omitempty"`
	NumBuckets           *uint32  `protobuf:"varint,3,opt,name=num_buckets,json=numBuckets,def=20" json:"num_buckets,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ExponentialBucket defines a set of num_buckets+2 buckets:

bucket[0] covers (−Inf, 0)
bucket[1] covers [0, scale_factor)
bucket[2] covers [scale_factor, scale_factor*base)
...
bucket[i] covers [scale_factor*base^(i−2), scale_factor*base^(i−1))
...
bucket[num_buckets+1] covers [scale_factor*base^(num_buckets−1), +Inf)

NB: Base must be at least 1.01.

func (*ExponentialBuckets) Descriptor

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

func (*ExponentialBuckets) GetBase

func (m *ExponentialBuckets) GetBase() float32

func (*ExponentialBuckets) GetNumBuckets

func (m *ExponentialBuckets) GetNumBuckets() uint32

func (*ExponentialBuckets) GetScaleFactor

func (m *ExponentialBuckets) GetScaleFactor() float32

func (*ExponentialBuckets) ProtoMessage

func (*ExponentialBuckets) ProtoMessage()

func (*ExponentialBuckets) Reset

func (m *ExponentialBuckets) Reset()

func (*ExponentialBuckets) String

func (m *ExponentialBuckets) String() string

func (*ExponentialBuckets) XXX_DiscardUnknown

func (m *ExponentialBuckets) XXX_DiscardUnknown()

func (*ExponentialBuckets) XXX_Marshal

func (m *ExponentialBuckets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ExponentialBuckets) XXX_Merge

func (dst *ExponentialBuckets) XXX_Merge(src proto.Message)

func (*ExponentialBuckets) XXX_Size

func (m *ExponentialBuckets) XXX_Size() int

func (*ExponentialBuckets) XXX_Unmarshal

func (m *ExponentialBuckets) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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