Documentation
¶
Index ¶
- type Manager
- func (m *Manager) GetAllServicePods() map[string][]*models.ServiceInfo
- func (m *Manager) GetConfig() *models.ManagerConfig
- func (m *Manager) GetRegistry() *registry.Registry
- func (m *Manager) GetServicePods(serviceName string) []*models.ServiceInfo
- func (m *Manager) Start() error
- func (m *Manager) Stop() error
- func (m *Manager) Wait()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager is the main governance manager component
func NewManager ¶
func NewManager(config *models.ManagerConfig) *Manager
NewManager creates a new governance manager with in-memory cache only (no database persistence)
func NewManagerWithDatabase ¶
func NewManagerWithDatabase(config *models.ManagerConfig, db storage.DatabaseStore) *Manager
NewManagerWithDatabase creates a new governance manager with optional database persistence. The manager always uses in-memory cache for performance. If db is not nil, all changes are also persisted to the database asynchronously.
func (*Manager) GetAllServicePods ¶
func (m *Manager) GetAllServicePods() map[string][]*models.ServiceInfo
GetAllServicePods returns a map of service names to their pods
func (*Manager) GetConfig ¶
func (m *Manager) GetConfig() *models.ManagerConfig
GetConfig returns the manager configuration
func (*Manager) GetRegistry ¶
GetRegistry returns the registry (for testing/debugging)
func (*Manager) GetServicePods ¶
func (m *Manager) GetServicePods(serviceName string) []*models.ServiceInfo
GetServicePods returns all pods for a given service group
Click to show internal directories.
Click to hide internal directories.