settings_models

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthSettings = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSettings   = fmt.Errorf("proto: integer overflow")
)
View Source
var SampleStrategy_name = map[int32]string{
	0: "ALL",
	1: "SAMPLE_RATIO",
	2: "RATE_LIMIT",
}
View Source
var SampleStrategy_value = map[string]int32{
	"ALL":          0,
	"SAMPLE_RATIO": 1,
	"RATE_LIMIT":   2,
}

Functions

This section is empty.

Types

type Db

type Db struct {
	SlowQueryMillseconds int32 `protobuf:"varint,1,req,name=slow_query_millseconds,json=slowQueryMillseconds" json:"slow_query_millseconds"`
}

func (*Db) Descriptor

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

func (*Db) GetSlowQueryMillseconds

func (m *Db) GetSlowQueryMillseconds() int32

func (*Db) Marshal

func (m *Db) Marshal() (dAtA []byte, err error)

func (*Db) MarshalTo

func (m *Db) MarshalTo(dAtA []byte) (int, error)

func (*Db) ProtoMessage

func (*Db) ProtoMessage()

func (*Db) Reset

func (m *Db) Reset()

func (*Db) Size

func (m *Db) Size() (n int)

func (*Db) String

func (m *Db) String() string

func (*Db) Unmarshal

func (m *Db) Unmarshal(dAtA []byte) error

func (*Db) XXX_DiscardUnknown

func (m *Db) XXX_DiscardUnknown()

func (*Db) XXX_Marshal

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

func (*Db) XXX_Merge

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

func (*Db) XXX_Size

func (m *Db) XXX_Size() int

func (*Db) XXX_Unmarshal

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

type SampleStrategy

type SampleStrategy int32
const (
	SampleStrategy_ALL          SampleStrategy = 0
	SampleStrategy_SAMPLE_RATIO SampleStrategy = 1
	SampleStrategy_RATE_LIMIT   SampleStrategy = 2
)

func (SampleStrategy) Enum

func (x SampleStrategy) Enum() *SampleStrategy

func (SampleStrategy) EnumDescriptor

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

func (SampleStrategy) String

func (x SampleStrategy) String() string

func (*SampleStrategy) UnmarshalJSON

func (x *SampleStrategy) UnmarshalJSON(data []byte) error

type Settings

type Settings struct {
	Db    *Db    `protobuf:"bytes,1,req,name=db" json:"db,omitempty"`
	Trace *Trace `protobuf:"bytes,2,req,name=trace" json:"trace,omitempty"`
}

func (*Settings) Descriptor

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

func (*Settings) GetDb

func (m *Settings) GetDb() *Db

func (*Settings) GetTrace

func (m *Settings) GetTrace() *Trace

func (*Settings) Marshal

func (m *Settings) Marshal() (dAtA []byte, err error)

func (*Settings) MarshalTo

func (m *Settings) MarshalTo(dAtA []byte) (int, error)

func (*Settings) ProtoMessage

func (*Settings) ProtoMessage()

func (*Settings) Reset

func (m *Settings) Reset()

func (*Settings) Size

func (m *Settings) Size() (n int)

func (*Settings) String

func (m *Settings) String() string

func (*Settings) Unmarshal

func (m *Settings) Unmarshal(dAtA []byte) error

func (*Settings) XXX_DiscardUnknown

func (m *Settings) XXX_DiscardUnknown()

func (*Settings) XXX_Marshal

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

func (*Settings) XXX_Merge

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

func (*Settings) XXX_Size

func (m *Settings) XXX_Size() int

func (*Settings) XXX_Unmarshal

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

type Trace

type Trace struct {
	SampleConfig *TraceSample `protobuf:"bytes,1,req,name=sample_config,json=sampleConfig" json:"sample_config,omitempty"`
}

func (*Trace) Descriptor

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

func (*Trace) GetSampleConfig

func (m *Trace) GetSampleConfig() *TraceSample

func (*Trace) Marshal

func (m *Trace) Marshal() (dAtA []byte, err error)

func (*Trace) MarshalTo

func (m *Trace) MarshalTo(dAtA []byte) (int, error)

func (*Trace) ProtoMessage

func (*Trace) ProtoMessage()

func (*Trace) Reset

func (m *Trace) Reset()

func (*Trace) Size

func (m *Trace) Size() (n int)

func (*Trace) String

func (m *Trace) String() string

func (*Trace) Unmarshal

func (m *Trace) Unmarshal(dAtA []byte) error

func (*Trace) XXX_DiscardUnknown

func (m *Trace) XXX_DiscardUnknown()

func (*Trace) XXX_Marshal

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

func (*Trace) XXX_Merge

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

func (*Trace) XXX_Size

func (m *Trace) XXX_Size() int

func (*Trace) XXX_Unmarshal

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

type TraceSample

type TraceSample struct {
	Strategy SampleStrategy `protobuf:"varint,1,req,name=strategy,enum=settings_models.SampleStrategy" json:"strategy"`
	Value    float64        `protobuf:"fixed64,2,opt,name=value" json:"value"`
}

func (*TraceSample) Descriptor

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

func (*TraceSample) GetStrategy

func (m *TraceSample) GetStrategy() SampleStrategy

func (*TraceSample) GetValue

func (m *TraceSample) GetValue() float64

func (*TraceSample) Marshal

func (m *TraceSample) Marshal() (dAtA []byte, err error)

func (*TraceSample) MarshalTo

func (m *TraceSample) MarshalTo(dAtA []byte) (int, error)

func (*TraceSample) ProtoMessage

func (*TraceSample) ProtoMessage()

func (*TraceSample) Reset

func (m *TraceSample) Reset()

func (*TraceSample) Size

func (m *TraceSample) Size() (n int)

func (*TraceSample) String

func (m *TraceSample) String() string

func (*TraceSample) Unmarshal

func (m *TraceSample) Unmarshal(dAtA []byte) error

func (*TraceSample) XXX_DiscardUnknown

func (m *TraceSample) XXX_DiscardUnknown()

func (*TraceSample) XXX_Marshal

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

func (*TraceSample) XXX_Merge

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

func (*TraceSample) XXX_Size

func (m *TraceSample) XXX_Size() int

func (*TraceSample) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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