Documentation ¶
Index ¶
- Variables
- type Db
- func (*Db) Descriptor() ([]byte, []int)
- func (m *Db) GetSlowQueryMillseconds() int32
- func (m *Db) Marshal() (dAtA []byte, err error)
- func (m *Db) MarshalTo(dAtA []byte) (int, error)
- func (*Db) ProtoMessage()
- func (m *Db) Reset()
- func (m *Db) Size() (n int)
- func (m *Db) String() string
- func (m *Db) Unmarshal(dAtA []byte) error
- func (m *Db) XXX_DiscardUnknown()
- func (m *Db) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Db) XXX_Merge(src proto.Message)
- func (m *Db) XXX_Size() int
- func (m *Db) XXX_Unmarshal(b []byte) error
- type SampleStrategy
- type Settings
- func (*Settings) Descriptor() ([]byte, []int)
- func (m *Settings) GetDb() *Db
- func (m *Settings) GetTrace() *Trace
- func (m *Settings) Marshal() (dAtA []byte, err error)
- func (m *Settings) MarshalTo(dAtA []byte) (int, error)
- func (*Settings) ProtoMessage()
- func (m *Settings) Reset()
- func (m *Settings) Size() (n int)
- func (m *Settings) String() string
- func (m *Settings) Unmarshal(dAtA []byte) error
- func (m *Settings) XXX_DiscardUnknown()
- func (m *Settings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Settings) XXX_Merge(src proto.Message)
- func (m *Settings) XXX_Size() int
- func (m *Settings) XXX_Unmarshal(b []byte) error
- type Trace
- func (*Trace) Descriptor() ([]byte, []int)
- func (m *Trace) GetSampleConfig() *TraceSample
- func (m *Trace) Marshal() (dAtA []byte, err error)
- func (m *Trace) MarshalTo(dAtA []byte) (int, error)
- func (*Trace) ProtoMessage()
- func (m *Trace) Reset()
- func (m *Trace) Size() (n int)
- func (m *Trace) String() string
- func (m *Trace) Unmarshal(dAtA []byte) error
- func (m *Trace) XXX_DiscardUnknown()
- func (m *Trace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Trace) XXX_Merge(src proto.Message)
- func (m *Trace) XXX_Size() int
- func (m *Trace) XXX_Unmarshal(b []byte) error
- type TraceSample
- func (*TraceSample) Descriptor() ([]byte, []int)
- func (m *TraceSample) GetStrategy() SampleStrategy
- func (m *TraceSample) GetValue() float64
- func (m *TraceSample) Marshal() (dAtA []byte, err error)
- func (m *TraceSample) MarshalTo(dAtA []byte) (int, error)
- func (*TraceSample) ProtoMessage()
- func (m *TraceSample) Reset()
- func (m *TraceSample) Size() (n int)
- func (m *TraceSample) String() string
- func (m *TraceSample) Unmarshal(dAtA []byte) error
- func (m *TraceSample) XXX_DiscardUnknown()
- func (m *TraceSample) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TraceSample) XXX_Merge(src proto.Message)
- func (m *TraceSample) XXX_Size() int
- func (m *TraceSample) XXX_Unmarshal(b []byte) error
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) GetSlowQueryMillseconds ¶
func (*Db) ProtoMessage ¶
func (*Db) ProtoMessage()
func (*Db) XXX_DiscardUnknown ¶
func (m *Db) XXX_DiscardUnknown()
func (*Db) XXX_Unmarshal ¶
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) ProtoMessage ¶
func (*Settings) ProtoMessage()
func (*Settings) XXX_DiscardUnknown ¶
func (m *Settings) XXX_DiscardUnknown()
func (*Settings) XXX_Marshal ¶
func (*Settings) XXX_Unmarshal ¶
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) GetSampleConfig ¶
func (m *Trace) GetSampleConfig() *TraceSample
func (*Trace) ProtoMessage ¶
func (*Trace) ProtoMessage()
func (*Trace) XXX_DiscardUnknown ¶
func (m *Trace) XXX_DiscardUnknown()
func (*Trace) XXX_Marshal ¶
func (*Trace) XXX_Unmarshal ¶
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) 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
Click to show internal directories.
Click to hide internal directories.