Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRemoteClient ¶
type MockRemoteClient struct {
// contains filtered or unexported fields
}
MockRemoteClient is a mock of RemoteClient interface.
func NewMockRemoteClient ¶
func NewMockRemoteClient(ctrl *gomock.Controller) *MockRemoteClient
NewMockRemoteClient creates a new mock instance.
func (*MockRemoteClient) EXPECT ¶
func (m *MockRemoteClient) EXPECT() *MockRemoteClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRemoteClient) RegisterAPMUpdate ¶
func (m *MockRemoteClient) RegisterAPMUpdate(arg0 func(map[string]state.APMSamplingConfig))
RegisterAPMUpdate mocks base method.
type MockRemoteClientMockRecorder ¶
type MockRemoteClientMockRecorder struct {
// contains filtered or unexported fields
}
MockRemoteClientMockRecorder is the mock recorder for MockRemoteClient.
func (*MockRemoteClientMockRecorder) Close ¶
func (mr *MockRemoteClientMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockRemoteClientMockRecorder) RegisterAPMUpdate ¶
func (mr *MockRemoteClientMockRecorder) RegisterAPMUpdate(arg0 interface{}) *gomock.Call
RegisterAPMUpdate indicates an expected call of RegisterAPMUpdate.
func (*MockRemoteClientMockRecorder) Start ¶
func (mr *MockRemoteClientMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
type MockerrorsSampler ¶
type MockerrorsSampler struct {
// contains filtered or unexported fields
}
MockerrorsSampler is a mock of errorsSampler interface.
func NewMockerrorsSampler ¶
func NewMockerrorsSampler(ctrl *gomock.Controller) *MockerrorsSampler
NewMockerrorsSampler creates a new mock instance.
func (*MockerrorsSampler) EXPECT ¶
func (m *MockerrorsSampler) EXPECT() *MockerrorsSamplerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockerrorsSampler) UpdateTargetTPS ¶
func (m *MockerrorsSampler) UpdateTargetTPS(targetTPS float64)
UpdateTargetTPS mocks base method.
type MockerrorsSamplerMockRecorder ¶
type MockerrorsSamplerMockRecorder struct {
// contains filtered or unexported fields
}
MockerrorsSamplerMockRecorder is the mock recorder for MockerrorsSampler.
func (*MockerrorsSamplerMockRecorder) UpdateTargetTPS ¶
func (mr *MockerrorsSamplerMockRecorder) UpdateTargetTPS(targetTPS interface{}) *gomock.Call
UpdateTargetTPS indicates an expected call of UpdateTargetTPS.
type MockprioritySampler ¶
type MockprioritySampler struct {
// contains filtered or unexported fields
}
MockprioritySampler is a mock of prioritySampler interface.
func NewMockprioritySampler ¶
func NewMockprioritySampler(ctrl *gomock.Controller) *MockprioritySampler
NewMockprioritySampler creates a new mock instance.
func (*MockprioritySampler) EXPECT ¶
func (m *MockprioritySampler) EXPECT() *MockprioritySamplerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockprioritySampler) UpdateTargetTPS ¶
func (m *MockprioritySampler) UpdateTargetTPS(targetTPS float64)
UpdateTargetTPS mocks base method.
type MockprioritySamplerMockRecorder ¶
type MockprioritySamplerMockRecorder struct {
// contains filtered or unexported fields
}
MockprioritySamplerMockRecorder is the mock recorder for MockprioritySampler.
func (*MockprioritySamplerMockRecorder) UpdateTargetTPS ¶
func (mr *MockprioritySamplerMockRecorder) UpdateTargetTPS(targetTPS interface{}) *gomock.Call
UpdateTargetTPS indicates an expected call of UpdateTargetTPS.
type MockrareSampler ¶
type MockrareSampler struct {
// contains filtered or unexported fields
}
MockrareSampler is a mock of rareSampler interface.
func NewMockrareSampler ¶
func NewMockrareSampler(ctrl *gomock.Controller) *MockrareSampler
NewMockrareSampler creates a new mock instance.
func (*MockrareSampler) EXPECT ¶
func (m *MockrareSampler) EXPECT() *MockrareSamplerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockrareSampler) SetEnabled ¶
func (m *MockrareSampler) SetEnabled(enabled bool)
SetEnabled mocks base method.
type MockrareSamplerMockRecorder ¶
type MockrareSamplerMockRecorder struct {
// contains filtered or unexported fields
}
MockrareSamplerMockRecorder is the mock recorder for MockrareSampler.
func (*MockrareSamplerMockRecorder) SetEnabled ¶
func (mr *MockrareSamplerMockRecorder) SetEnabled(enabled interface{}) *gomock.Call
SetEnabled indicates an expected call of SetEnabled.
type RemoteConfigHandler ¶
type RemoteConfigHandler struct {
// contains filtered or unexported fields
}
RemoteConfigHandler holds pointers to samplers that need to be updated when APM remote config changes
func New ¶
func New(conf *config.AgentConfig, prioritySampler prioritySampler, rareSampler rareSampler, errorsSampler errorsSampler) *RemoteConfigHandler
func (*RemoteConfigHandler) Start ¶
func (h *RemoteConfigHandler) Start()