Documentation
¶
Index ¶
- type ClusterAPI
- func (ca *ClusterAPI) AddNode(ctx forge.Context) error
- func (ca *ClusterAPI) AnalyzeBalance(ctx forge.Context) error
- func (ca *ClusterAPI) GetClusterHealth(ctx forge.Context) error
- func (ca *ClusterAPI) GetClusterSizeRecommendations(ctx forge.Context) error
- func (ca *ClusterAPI) GetClusterStatus(ctx forge.Context) error
- func (ca *ClusterAPI) GetMembershipChanges(ctx forge.Context) error
- func (ca *ClusterAPI) GetNode(ctx forge.Context) error
- func (ca *ClusterAPI) GetQuorumStatus(ctx forge.Context) error
- func (ca *ClusterAPI) GetTopology(ctx forge.Context) error
- func (ca *ClusterAPI) ListNodes(ctx forge.Context) error
- func (ca *ClusterAPI) Rebalance(ctx forge.Context) error
- func (ca *ClusterAPI) RemoveNode(ctx forge.Context) error
- func (ca *ClusterAPI) TransferLeadership(ctx forge.Context) error
- func (ca *ClusterAPI) ValidateResilience(ctx forge.Context) error
- func (ca *ClusterAPI) ValidateTopology(ctx forge.Context) error
- type ConfigAPI
- func (ca *ConfigAPI) GetConfig(ctx forge.Context) error
- func (ca *ConfigAPI) GetDiscoveryConfig(ctx forge.Context) error
- func (ca *ConfigAPI) GetObservabilityConfig(ctx forge.Context) error
- func (ca *ConfigAPI) GetRaftConfig(ctx forge.Context) error
- func (ca *ConfigAPI) GetStorageConfig(ctx forge.Context) error
- func (ca *ConfigAPI) GetTransportConfig(ctx forge.Context) error
- func (ca *ConfigAPI) UpdateConfig(ctx forge.Context) error
- func (ca *ConfigAPI) ValidateConfig(ctx forge.Context) error
- type NodeAPI
- func (na *NodeAPI) GetNodeInfo(ctx forge.Context) error
- func (na *NodeAPI) GetNodeMetrics(ctx forge.Context) error
- func (na *NodeAPI) GetNodePeers(ctx forge.Context) error
- func (na *NodeAPI) GetNodeStatus(ctx forge.Context) error
- func (na *NodeAPI) ProposeCommand(ctx forge.Context) error
- func (na *NodeAPI) StepDown(ctx forge.Context) error
- type StatsAPI
- func (sa *StatsAPI) GetClusterStats(ctx forge.Context) error
- func (sa *StatsAPI) GetMetrics(ctx forge.Context) error
- func (sa *StatsAPI) GetPerformanceStats(ctx forge.Context) error
- func (sa *StatsAPI) GetRaftStats(ctx forge.Context) error
- func (sa *StatsAPI) GetReplicationStats(ctx forge.Context) error
- func (sa *StatsAPI) GetStats(ctx forge.Context) error
- func (sa *StatsAPI) ResetMetrics(ctx forge.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterAPI ¶
type ClusterAPI struct {
// contains filtered or unexported fields
}
ClusterAPI provides cluster management endpoints
func NewClusterAPI ¶
func NewClusterAPI( manager *cluster.Manager, membership *cluster.MembershipManager, topology *cluster.TopologyManager, quorum *cluster.QuorumManager, rebalance *cluster.RebalanceManager, logger forge.Logger, ) *ClusterAPI
NewClusterAPI creates a new cluster API
func (*ClusterAPI) AddNode ¶
func (ca *ClusterAPI) AddNode(ctx forge.Context) error
AddNode adds a node to the cluster
func (*ClusterAPI) AnalyzeBalance ¶
func (ca *ClusterAPI) AnalyzeBalance(ctx forge.Context) error
AnalyzeBalance analyzes cluster balance
func (*ClusterAPI) GetClusterHealth ¶
func (ca *ClusterAPI) GetClusterHealth(ctx forge.Context) error
GetClusterHealth returns overall cluster health
func (*ClusterAPI) GetClusterSizeRecommendations ¶
func (ca *ClusterAPI) GetClusterSizeRecommendations(ctx forge.Context) error
GetClusterSize recommendations
func (*ClusterAPI) GetClusterStatus ¶
func (ca *ClusterAPI) GetClusterStatus(ctx forge.Context) error
GetClusterStatus returns cluster status
func (*ClusterAPI) GetMembershipChanges ¶
func (ca *ClusterAPI) GetMembershipChanges(ctx forge.Context) error
GetMembershipChanges returns pending membership changes
func (*ClusterAPI) GetNode ¶
func (ca *ClusterAPI) GetNode(ctx forge.Context) error
GetNode returns information about a specific node
func (*ClusterAPI) GetQuorumStatus ¶
func (ca *ClusterAPI) GetQuorumStatus(ctx forge.Context) error
GetQuorumStatus returns quorum information
func (*ClusterAPI) GetTopology ¶
func (ca *ClusterAPI) GetTopology(ctx forge.Context) error
GetTopology returns cluster topology
func (*ClusterAPI) ListNodes ¶
func (ca *ClusterAPI) ListNodes(ctx forge.Context) error
ListNodes returns all cluster nodes
func (*ClusterAPI) Rebalance ¶
func (ca *ClusterAPI) Rebalance(ctx forge.Context) error
Rebalance triggers cluster rebalancing
func (*ClusterAPI) RemoveNode ¶
func (ca *ClusterAPI) RemoveNode(ctx forge.Context) error
RemoveNode removes a node from the cluster
func (*ClusterAPI) TransferLeadership ¶
func (ca *ClusterAPI) TransferLeadership(ctx forge.Context) error
TransferLeadership initiates leadership transfer
func (*ClusterAPI) ValidateResilience ¶
func (ca *ClusterAPI) ValidateResilience(ctx forge.Context) error
ValidateResilience validates cluster resilience
func (*ClusterAPI) ValidateTopology ¶
func (ca *ClusterAPI) ValidateTopology(ctx forge.Context) error
ValidateTopology validates cluster topology
type ConfigAPI ¶
type ConfigAPI struct {
// contains filtered or unexported fields
}
ConfigAPI provides configuration management endpoints
func NewConfigAPI ¶
NewConfigAPI creates a new config API
func (*ConfigAPI) GetDiscoveryConfig ¶
GetDiscoveryConfig returns discovery configuration
func (*ConfigAPI) GetObservabilityConfig ¶
GetObservabilityConfig returns observability configuration
func (*ConfigAPI) GetRaftConfig ¶
GetRaftConfig returns Raft-specific configuration
func (*ConfigAPI) GetStorageConfig ¶
GetStorageConfig returns storage configuration
func (*ConfigAPI) GetTransportConfig ¶
GetTransportConfig returns transport configuration
func (*ConfigAPI) UpdateConfig ¶
UpdateConfig updates configuration (limited set of fields)
type NodeAPI ¶
type NodeAPI struct {
// contains filtered or unexported fields
}
NodeAPI provides node-specific endpoints
func NewNodeAPI ¶
NewNodeAPI creates a new node API
func (*NodeAPI) GetNodeInfo ¶
GetNodeInfo returns information about the local node
func (*NodeAPI) GetNodeMetrics ¶
GetNodeMetrics returns node-specific metrics
func (*NodeAPI) GetNodePeers ¶
GetNodePeers returns the node's view of peers
func (*NodeAPI) GetNodeStatus ¶
GetNodeStatus returns detailed node status
func (*NodeAPI) ProposeCommand ¶
ProposeCommand proposes a command to the cluster
type StatsAPI ¶
type StatsAPI struct {
// contains filtered or unexported fields
}
StatsAPI provides statistics endpoints
func NewStatsAPI ¶
func NewStatsAPI( raftNode internal.RaftNode, manager *cluster.Manager, metrics *observability.MetricsCollector, logger forge.Logger, ) *StatsAPI
NewStatsAPI creates a new stats API
func (*StatsAPI) GetClusterStats ¶
GetClusterStats returns cluster statistics
func (*StatsAPI) GetMetrics ¶
GetMetrics returns metrics in Prometheus format
func (*StatsAPI) GetPerformanceStats ¶
GetPerformanceStats returns performance statistics
func (*StatsAPI) GetRaftStats ¶
GetRaftStats returns Raft-specific statistics
func (*StatsAPI) GetReplicationStats ¶
GetReplicationStats returns replication statistics