Documentation ¶
Index ¶
Constants ¶
View Source
const HeartbeatInterval = 5 * time.Second
Variables ¶
This section is empty.
Functions ¶
func InitConfig ¶
InitConfig intializes the config for the application If no config file is provided with the --config flag it will look for a config in following locations:
Order represents priority /etc/trento/agent.yaml /usr/etc/trento/agent.yaml $HOME/.config/trento/agent.yaml
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
func (*Agent) Start ¶
Start the Agent. This will start the discovery ticker and the heartbeat ticker
func (*Agent) Stop ¶
func (a *Agent) Stop(ctxCancel context.CancelFunc)
Click to show internal directories.
Click to hide internal directories.