remoteconfighandler

package
v0.54.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package remoteconfighandler holds the logic responsible for updating the samplers when the remote configuration changes.

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

func (m *MockRemoteClient) Start()

Start mocks base method.

func (*MockRemoteClient) Subscribe added in v0.47.0

func (m *MockRemoteClient) Subscribe(arg0 string, arg1 func(map[string]state.RawConfig, func(string, state.ApplyStatus)))

Subscribe mocks base method.

func (*MockRemoteClient) UpdateApplyStatus added in v0.47.0

func (m *MockRemoteClient) UpdateApplyStatus(cfgPath string, status state.ApplyStatus)

UpdateApplyStatus 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) Start

Start indicates an expected call of Start.

func (*MockRemoteClientMockRecorder) Subscribe added in v0.47.0

func (mr *MockRemoteClientMockRecorder) Subscribe(arg0 interface{}, arg1 interface{}) *gomock.Call

Subscribe indicates an expected call of Subscribe.

func (*MockRemoteClientMockRecorder) UpdateApplyStatus added in v0.47.0

func (mr *MockRemoteClientMockRecorder) UpdateApplyStatus(arg0 interface{}, arg1 interface{}) *gomock.Call

UpdateApplyStatus mocks base method

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

New creates a new RemoteConfigHandler

func (*RemoteConfigHandler) Start

func (h *RemoteConfigHandler) Start()

Start starts the remote config handler

Jump to

Keyboard shortcuts

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