Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PeersWatcherModule ¶
PeersWatcherModule is a fx module that watches all agent peers.
Types ¶
type ConstructorIn ¶
type ConstructorIn struct { fx.In Lifecycle fx.Lifecycle Unmarshaller config.Unmarshaller JobGroup *jobs.JobGroup `name:"heartbeats-job-group"` GRPClientConnectionBuilder grpcclient.ClientConnectionBuilder `name:"heartbeats-grpc-client"` HTTPClient *http.Client `name:"heartbeats-http-client"` StatusRegistry status.Registry EntityCache *entitycache.EntityCache `optional:"true"` AgentInfo *agentinfo.AgentInfo `optional:"true"` PeersWatcher *peers.PeerDiscovery `name:"fluxninja-peers-watcher" optional:"true"` EtcdClient *etcdclient.Client }
ConstructorIn injects dependencies into the Heartbeats constructor.
type Heartbeats ¶
type Heartbeats struct { APIKey string // contains filtered or unexported fields }
func Provide ¶
func Provide(in ConstructorIn) (*Heartbeats, error)
Provide provides a new instance of Heartbeats.
func (*Heartbeats) GetControllerInfo ¶
func (h *Heartbeats) GetControllerInfo() *heartbeatv1.ControllerInfo
Click to show internal directories.
Click to hide internal directories.