Documentation ¶
Index ¶
- type FakeOrc
- func (o *FakeOrc) AckRecovery(id int64, comment string) error
- func (o *FakeOrc) AddInstance(cluster string, host string, master bool, sls int64, slaveR bool)
- func (o *FakeOrc) AddRecoveries(cluster string, id int64, ack bool)
- func (o *FakeOrc) AuditRecovery(cluster string) ([]TopologyRecovery, error)
- func (o *FakeOrc) CheckAck(id int64) bool
- func (o *FakeOrc) CheckDiscovered(key string) bool
- func (o *FakeOrc) Cluster(cluster string) ([]Instance, error)
- func (o *FakeOrc) Discover(host string, port int) error
- func (o *FakeOrc) Forget(host string, port int) error
- func (o *FakeOrc) Master(clusterHint string) (*Instance, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeOrc ¶
type FakeOrc struct { Clusters map[string][]Instance Recoveries map[string][]TopologyRecovery AckRec []int64 Discovered []InstanceKey }
func (*FakeOrc) AddInstance ¶
func (*FakeOrc) AuditRecovery ¶
func (*FakeOrc) CheckDiscovered ¶
Click to show internal directories.
Click to hide internal directories.