remoteconfighandler

package
v0.43.0-rc.5 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

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) Close

func (m *MockRemoteClient) Close()

Close mocks base method.

func (*MockRemoteClient) EXPECT

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.

func (*MockRemoteClient) Start

func (m *MockRemoteClient) Start()

Start mocks base method.

type MockRemoteClientMockRecorder

type MockRemoteClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockRemoteClientMockRecorder is the mock recorder for MockRemoteClient.

func (*MockRemoteClientMockRecorder) Close

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

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

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

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

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()

Jump to

Keyboard shortcuts

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