Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster interface { io.Closer // Node returns the local node Node() Node // Replica returns a replica by ID Replica(ReplicaID) *Replica // Replicas returns the set of remote replicas Replicas() ReplicaSet // Watch watches the cluster for changes to the replicas Watch(chan<- ReplicaSet) error }
Cluster is an interface for interacting with the onos-ric cluster
type Replica ¶
Replica is a cluster replica
func (*Replica) Connect ¶
func (r *Replica) Connect(ctx context.Context, opts ...grpc.DialOption) (*grpc.ClientConn, error)
Connect connects to the replica
type TestFactory ¶
type TestFactory struct {
// contains filtered or unexported fields
}
TestFactory is a factory for creating test clusters
func NewTestFactory ¶
func NewTestFactory(services ...Service) *TestFactory
NewTestFactory creates a new cluster factory
func (*TestFactory) NewCluster ¶
func (f *TestFactory) NewCluster(nodeID NodeID) (Cluster, error)
NewCluster creates a new test cluster
Click to show internal directories.
Click to hide internal directories.