Documentation
¶
Index ¶
- func WaitClusterInitialized(e *store.StoreManager, timeout time.Duration) error
- func WaitClusterViewMaster(master string, e *store.StoreManager, timeout time.Duration) error
- func WaitClusterViewWithMaster(e *store.StoreManager, timeout time.Duration) error
- type CheckFunc
- type Process
- type TestKeeper
- func (tk *TestKeeper) Exec(query string, args ...interface{}) (sql.Result, error)
- func (tk *TestKeeper) GetKeeperInfo(timeout time.Duration) (*cluster.KeeperInfo, error)
- func (tk *TestKeeper) GetPGProcess() (*os.Process, error)
- func (tk *TestKeeper) IsMaster() (bool, error)
- func (tk *TestKeeper) Query(query string, args ...interface{}) (*sql.Rows, error)
- func (tk *TestKeeper) SignalPG(sig os.Signal) error
- func (tk *TestKeeper) WaitDBDown(timeout time.Duration) error
- func (tk *TestKeeper) WaitDBUp(timeout time.Duration) error
- func (tk *TestKeeper) WaitDown(timeout time.Duration) error
- func (tk *TestKeeper) WaitRole(r common.Role, timeout time.Duration) error
- func (tk *TestKeeper) WaitUp(timeout time.Duration) error
- type TestProxy
- type TestSentinel
- type TestStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WaitClusterInitialized ¶ added in v0.3.0
func WaitClusterInitialized(e *store.StoreManager, timeout time.Duration) error
func WaitClusterViewMaster ¶
func WaitClusterViewWithMaster ¶ added in v0.3.0
func WaitClusterViewWithMaster(e *store.StoreManager, timeout time.Duration) error
Types ¶
type Process ¶
type Process struct {
// contains filtered or unexported fields
}
func (*Process) StartExpect ¶
type TestKeeper ¶
type TestKeeper struct { Process // contains filtered or unexported fields }
func NewTestKeeper ¶
func NewTestKeeperWithID ¶
func (*TestKeeper) Exec ¶
func (tk *TestKeeper) Exec(query string, args ...interface{}) (sql.Result, error)
func (*TestKeeper) GetKeeperInfo ¶
func (tk *TestKeeper) GetKeeperInfo(timeout time.Duration) (*cluster.KeeperInfo, error)
func (*TestKeeper) GetPGProcess ¶
func (tk *TestKeeper) GetPGProcess() (*os.Process, error)
func (*TestKeeper) IsMaster ¶
func (tk *TestKeeper) IsMaster() (bool, error)
func (*TestKeeper) Query ¶
func (tk *TestKeeper) Query(query string, args ...interface{}) (*sql.Rows, error)
func (*TestKeeper) WaitDBDown ¶
func (tk *TestKeeper) WaitDBDown(timeout time.Duration) error
type TestProxy ¶
type TestProxy struct { Process // contains filtered or unexported fields }
func NewTestProxy ¶
type TestSentinel ¶
type TestSentinel struct { Process // contains filtered or unexported fields }
type TestStore ¶ added in v0.3.0
type TestStore struct { Process // contains filtered or unexported fields }
func NewTestConsul ¶ added in v0.3.0
func NewTestStore ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.