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.
Click to show internal directories.
Click to hide internal directories.