Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct {
ID string `json:"id"`
Endpoint string `json:"endpoint"`
Region string `json:"region"`
Status string `json:"status"`
}
Cluster represents a remote Hermod cluster in the mesh.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles inter-cluster routing and mesh topology.
func NewManager ¶
NewManager creates a new mesh Manager.
func (*Manager) GetCluster ¶
GetCluster returns a cluster by its ID.
func (*Manager) GetClusters ¶
GetClusters returns all registered clusters.
type MeshClient ¶
type MeshClient struct {
// contains filtered or unexported fields
}
MeshClient handles HTTP communication with remote clusters.
type MeshManager ¶
type MeshManager interface {
RegisterCluster(ctx context.Context, c Cluster) error
GetCluster(id string) (Cluster, bool)
GetClusters() []Cluster
Failover(ctx context.Context, fromClusterID, toClusterID string) error
}
MeshManager defines the interface for managing clusters in a mesh.
Click to show internal directories.
Click to hide internal directories.