Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterInfo ¶
type ClusterInfo struct {
ReplicasetUUID string `yaml:"replicaset_uuid" mapstructure:"replicaset_uuid"`
}
type InstanceInfo ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
func (*Provider) Init ¶
func (p *Provider) Init(c vshardrouter.TopologyController) error
func (*Provider) WatchChanges ¶
type SourceTopologyConfig ¶
type SourceTopologyConfig struct { Clusters map[string]ClusterInfo `json:"clusters,omitempty" yaml:"clusters" ` Instances map[string]InstanceInfo `json:"instances,omitempty" yaml:"instances"` }
type TopologyConfig ¶
type TopologyConfig struct {
Topology SourceTopologyConfig `json:"topology"`
}
Click to show internal directories.
Click to hide internal directories.