rcclientimpl

package
v0.0.0-...-bfe00b6 Latest Latest
Warning

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

Go to latest
Published: May 2, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package rcclientimpl is a remote config client that can run within the agent to receive configurations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRemoteConfigClient

func NewRemoteConfigClient(deps Dependencies) (rcclient.Component, error)

NewRemoteConfigClient must not populate any Fx groups or return any types that would be consumed as dependencies by other components. To avoid dependency cycles between our components we need to have "pure leaf" components (i.e. components that are instantiated last). Remote configuration client is a good candidate for this since it must be able to interact with any other components (i.e. be at the end of the dependency graph).

Types

type Dependencies

type Dependencies struct {
	compdef.In

	Log log.Component
	Lc  compdef.Lifecycle

	Params            rcclient.Params             `optional:"true"`
	Listeners         []types.RCListener          `group:"rCListener"`          // <-- Fill automatically by Fx
	TaskListeners     []types.RCAgentTaskListener `group:"rCAgentTaskListener"` // <-- Fill automatically by Fx
	SettingsComponent settings.Component
	Config            configcomp.Component
	SysprobeConfig    option.Option[sysprobeconfig.Component]
	IPC               ipc.Component
}

Dependencies defines the dependencies for the rcclient component.

Jump to

Keyboard shortcuts

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