Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterManager ¶
type ClusterManager interface {
LoadCluster(schemaFilePath string) error
UpdateCluster(schemaFilePath string) error
RemoveCluster(schemaFilePath string) error
GetCluster(name string) (*targetcluster.TargetCluster, bool)
ServeHTTP(w http.ResponseWriter, r *http.Request)
Close() error
}
ClusterManager manages target clusters and their lifecycle
type SchemaWatcher ¶
SchemaWatcher monitors schema files and manages cluster connections
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service orchestrates the domain-driven architecture with target clusters
func NewGateway ¶
NewGateway creates a new domain-driven Gateway instance
func (*Service) GetClusterRegistry ¶ added in v0.2.3
func (g *Service) GetClusterRegistry() ClusterManager
GetClusterRegistry returns the cluster registry (useful for testing)
Click to show internal directories.
Click to hide internal directories.