Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AgentConnectionManager ¶
type AgentConnectionManager struct {
// contains filtered or unexported fields
}
func NewAgentConnectionManager ¶
func NewAgentConnectionManager(ctx context.Context, logger *zap.Logger) *AgentConnectionManager
func (*AgentConnectionManager) AddConnection ¶
func (m *AgentConnectionManager) AddConnection(conn types.Connection, id string)
AddConnection adds a new connection to the list of underlying connected agents.
func (*AgentConnectionManager) DispatchRestartCommand ¶
func (m *AgentConnectionManager) DispatchRestartCommand(ctx context.Context) error
DispatchRestartCommand sends the CommandType_Restart event to all connected opamp agents.
func (*AgentConnectionManager) RemoveConnection ¶
func (m *AgentConnectionManager) RemoveConnection(conn types.Connection)
RemoveConnection removes the provided opamp connection from the list of underlying connected agents.
type ConnectionManager ¶
type ConnectionManager interface {
AddConnection(conn types.Connection, id string)
RemoveConnection(conn types.Connection)
DispatchRestartCommand(ctx context.Context) error
}
ConnectionManager is for managing connected agents for an opamp server.
Click to show internal directories.
Click to hide internal directories.