fake

package
v0.1.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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 New

func New() *FakeOrc

func (*FakeOrc) AckRecovery

func (o *FakeOrc) AckRecovery(id int64, comment string) error

func (*FakeOrc) AddInstance

func (o *FakeOrc) AddInstance(cluster, host string, master bool, sls int64, slaveR, upToDate bool)

func (*FakeOrc) AddRecoveries

func (o *FakeOrc) AddRecoveries(cluster string, id int64, ack bool)

func (*FakeOrc) AuditRecovery

func (o *FakeOrc) AuditRecovery(cluster string) ([]TopologyRecovery, error)

func (*FakeOrc) CheckAck

func (o *FakeOrc) CheckAck(id int64) bool

func (*FakeOrc) CheckDiscovered

func (o *FakeOrc) CheckDiscovered(key string) bool

func (*FakeOrc) Cluster

func (o *FakeOrc) Cluster(cluster string) ([]Instance, error)

func (*FakeOrc) Discover

func (o *FakeOrc) Discover(host string, port int) error

func (*FakeOrc) Forget

func (o *FakeOrc) Forget(host string, port int) error

func (*FakeOrc) Master

func (o *FakeOrc) Master(clusterHint string) (*Instance, error)

func (*FakeOrc) RemoveInstance added in v0.1.10

func (o *FakeOrc) RemoveInstance(cluster, host string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL