Documentation ¶
Overview ¶
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Index ¶
- type FakeAlerter
- func (fake *FakeAlerter) Invocations() map[string][][]interface{}
- func (fake *FakeAlerter) NotUnhealthy(arg1 time.Time) error
- func (fake *FakeAlerter) NotUnhealthyArgsForCall(i int) time.Time
- func (fake *FakeAlerter) NotUnhealthyCallCount() int
- func (fake *FakeAlerter) NotUnhealthyReturns(result1 error)
- func (fake *FakeAlerter) NotUnhealthyReturnsOnCall(i int, result1 error)
- func (fake *FakeAlerter) Unhealthy(arg1 time.Time) error
- func (fake *FakeAlerter) UnhealthyArgsForCall(i int) time.Time
- func (fake *FakeAlerter) UnhealthyCallCount() int
- func (fake *FakeAlerter) UnhealthyReturns(result1 error)
- func (fake *FakeAlerter) UnhealthyReturnsOnCall(i int, result1 error)
- type FakeChirper
- func (fake *FakeChirper) Chirp(conns []*models.NamedConnection, writeConn *models.NamedConnection, ...) (bool, error)
- func (fake *FakeChirper) ChirpArgsForCall(i int) ([]*models.NamedConnection, *models.NamedConnection, time.Time)
- func (fake *FakeChirper) ChirpCallCount() int
- func (fake *FakeChirper) ChirpReturns(result1 bool, result2 error)
- func (fake *FakeChirper) ChirpReturnsOnCall(i int, result1 bool, result2 error)
- func (fake *FakeChirper) Invocations() map[string][][]interface{}
- type FakeConnectionFactory
- func (fake *FakeConnectionFactory) Conns() ([]*models.NamedConnection, error)
- func (fake *FakeConnectionFactory) ConnsCallCount() int
- func (fake *FakeConnectionFactory) ConnsReturns(result1 []*models.NamedConnection, result2 error)
- func (fake *FakeConnectionFactory) ConnsReturnsOnCall(i int, result1 []*models.NamedConnection, result2 error)
- func (fake *FakeConnectionFactory) Invocations() map[string][][]interface{}
- func (fake *FakeConnectionFactory) WriteConn() (*models.NamedConnection, error)
- func (fake *FakeConnectionFactory) WriteConnCallCount() int
- func (fake *FakeConnectionFactory) WriteConnReturns(result1 *models.NamedConnection, result2 error)
- func (fake *FakeConnectionFactory) WriteConnReturnsOnCall(i int, result1 *models.NamedConnection, result2 error)
- type FakeHealthchecker
- func (fake *FakeHealthchecker) Healthy(arg1 *models.NamedConnection) (bool, error)
- func (fake *FakeHealthchecker) HealthyArgsForCall(i int) *models.NamedConnection
- func (fake *FakeHealthchecker) HealthyCallCount() int
- func (fake *FakeHealthchecker) HealthyReturns(result1 bool, result2 error)
- func (fake *FakeHealthchecker) HealthyReturnsOnCall(i int, result1 bool, result2 error)
- func (fake *FakeHealthchecker) Invocations() map[string][][]interface{}
- type FakeSQLClient
- func (fake *FakeSQLClient) Check(arg1 *sql.DB, arg2 time.Time) (bool, error)
- func (fake *FakeSQLClient) CheckArgsForCall(i int) (*sql.DB, time.Time)
- func (fake *FakeSQLClient) CheckCallCount() int
- func (fake *FakeSQLClient) CheckReturns(result1 bool, result2 error)
- func (fake *FakeSQLClient) CheckReturnsOnCall(i int, result1 bool, result2 error)
- func (fake *FakeSQLClient) Cleanup(arg1 *sql.DB) error
- func (fake *FakeSQLClient) CleanupArgsForCall(i int) *sql.DB
- func (fake *FakeSQLClient) CleanupCallCount() int
- func (fake *FakeSQLClient) CleanupReturns(result1 error)
- func (fake *FakeSQLClient) CleanupReturnsOnCall(i int, result1 error)
- func (fake *FakeSQLClient) Invocations() map[string][][]interface{}
- func (fake *FakeSQLClient) Setup(arg1 *sql.DB) error
- func (fake *FakeSQLClient) SetupArgsForCall(i int) *sql.DB
- func (fake *FakeSQLClient) SetupCallCount() int
- func (fake *FakeSQLClient) SetupReturns(result1 error)
- func (fake *FakeSQLClient) SetupReturnsOnCall(i int, result1 error)
- func (fake *FakeSQLClient) Write(arg1 *sql.DB, arg2 time.Time) error
- func (fake *FakeSQLClient) WriteArgsForCall(i int) (*sql.DB, time.Time)
- func (fake *FakeSQLClient) WriteCallCount() int
- func (fake *FakeSQLClient) WriteReturns(result1 error)
- func (fake *FakeSQLClient) WriteReturnsOnCall(i int, result1 error)
- type FakeStateMachine
- func (fake *FakeStateMachine) BecomesNotUnhealthy(arg1 time.Time)
- func (fake *FakeStateMachine) BecomesNotUnhealthyArgsForCall(i int) time.Time
- func (fake *FakeStateMachine) BecomesNotUnhealthyCallCount() int
- func (fake *FakeStateMachine) BecomesUnhealthy(arg1 time.Time)
- func (fake *FakeStateMachine) BecomesUnhealthyArgsForCall(i int) time.Time
- func (fake *FakeStateMachine) BecomesUnhealthyCallCount() int
- func (fake *FakeStateMachine) GetState() canary.State
- func (fake *FakeStateMachine) GetStateCallCount() int
- func (fake *FakeStateMachine) GetStateReturns(result1 canary.State)
- func (fake *FakeStateMachine) GetStateReturnsOnCall(i int, result1 canary.State)
- func (fake *FakeStateMachine) Invocations() map[string][][]interface{}
- func (fake *FakeStateMachine) RemainsInSameState(arg1 time.Time)
- func (fake *FakeStateMachine) RemainsInSameStateArgsForCall(i int) time.Time
- func (fake *FakeStateMachine) RemainsInSameStateCallCount() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeAlerter ¶
type FakeAlerter struct { NotUnhealthyStub func(time.Time) error UnhealthyStub func(time.Time) error // contains filtered or unexported fields }
func (*FakeAlerter) Invocations ¶
func (fake *FakeAlerter) Invocations() map[string][][]interface{}
func (*FakeAlerter) NotUnhealthy ¶
func (fake *FakeAlerter) NotUnhealthy(arg1 time.Time) error
func (*FakeAlerter) NotUnhealthyArgsForCall ¶
func (fake *FakeAlerter) NotUnhealthyArgsForCall(i int) time.Time
func (*FakeAlerter) NotUnhealthyCallCount ¶
func (fake *FakeAlerter) NotUnhealthyCallCount() int
func (*FakeAlerter) NotUnhealthyReturns ¶
func (fake *FakeAlerter) NotUnhealthyReturns(result1 error)
func (*FakeAlerter) NotUnhealthyReturnsOnCall ¶
func (fake *FakeAlerter) NotUnhealthyReturnsOnCall(i int, result1 error)
func (*FakeAlerter) UnhealthyArgsForCall ¶
func (fake *FakeAlerter) UnhealthyArgsForCall(i int) time.Time
func (*FakeAlerter) UnhealthyCallCount ¶
func (fake *FakeAlerter) UnhealthyCallCount() int
func (*FakeAlerter) UnhealthyReturns ¶
func (fake *FakeAlerter) UnhealthyReturns(result1 error)
func (*FakeAlerter) UnhealthyReturnsOnCall ¶
func (fake *FakeAlerter) UnhealthyReturnsOnCall(i int, result1 error)
type FakeChirper ¶
type FakeChirper struct { ChirpStub func(conns []*models.NamedConnection, writeConn *models.NamedConnection, timestamp time.Time) (bool, error) // contains filtered or unexported fields }
func (*FakeChirper) Chirp ¶
func (fake *FakeChirper) Chirp(conns []*models.NamedConnection, writeConn *models.NamedConnection, timestamp time.Time) (bool, error)
func (*FakeChirper) ChirpArgsForCall ¶
func (fake *FakeChirper) ChirpArgsForCall(i int) ([]*models.NamedConnection, *models.NamedConnection, time.Time)
func (*FakeChirper) ChirpCallCount ¶
func (fake *FakeChirper) ChirpCallCount() int
func (*FakeChirper) ChirpReturns ¶
func (fake *FakeChirper) ChirpReturns(result1 bool, result2 error)
func (*FakeChirper) ChirpReturnsOnCall ¶
func (fake *FakeChirper) ChirpReturnsOnCall(i int, result1 bool, result2 error)
func (*FakeChirper) Invocations ¶
func (fake *FakeChirper) Invocations() map[string][][]interface{}
type FakeConnectionFactory ¶
type FakeConnectionFactory struct { ConnsStub func() ([]*models.NamedConnection, error) WriteConnStub func() (*models.NamedConnection, error) // contains filtered or unexported fields }
func (*FakeConnectionFactory) Conns ¶
func (fake *FakeConnectionFactory) Conns() ([]*models.NamedConnection, error)
func (*FakeConnectionFactory) ConnsCallCount ¶
func (fake *FakeConnectionFactory) ConnsCallCount() int
func (*FakeConnectionFactory) ConnsReturns ¶
func (fake *FakeConnectionFactory) ConnsReturns(result1 []*models.NamedConnection, result2 error)
func (*FakeConnectionFactory) ConnsReturnsOnCall ¶
func (fake *FakeConnectionFactory) ConnsReturnsOnCall(i int, result1 []*models.NamedConnection, result2 error)
func (*FakeConnectionFactory) Invocations ¶
func (fake *FakeConnectionFactory) Invocations() map[string][][]interface{}
func (*FakeConnectionFactory) WriteConn ¶
func (fake *FakeConnectionFactory) WriteConn() (*models.NamedConnection, error)
func (*FakeConnectionFactory) WriteConnCallCount ¶
func (fake *FakeConnectionFactory) WriteConnCallCount() int
func (*FakeConnectionFactory) WriteConnReturns ¶
func (fake *FakeConnectionFactory) WriteConnReturns(result1 *models.NamedConnection, result2 error)
func (*FakeConnectionFactory) WriteConnReturnsOnCall ¶
func (fake *FakeConnectionFactory) WriteConnReturnsOnCall(i int, result1 *models.NamedConnection, result2 error)
type FakeHealthchecker ¶
type FakeHealthchecker struct { HealthyStub func(*models.NamedConnection) (bool, error) // contains filtered or unexported fields }
func (*FakeHealthchecker) Healthy ¶
func (fake *FakeHealthchecker) Healthy(arg1 *models.NamedConnection) (bool, error)
func (*FakeHealthchecker) HealthyArgsForCall ¶
func (fake *FakeHealthchecker) HealthyArgsForCall(i int) *models.NamedConnection
func (*FakeHealthchecker) HealthyCallCount ¶
func (fake *FakeHealthchecker) HealthyCallCount() int
func (*FakeHealthchecker) HealthyReturns ¶
func (fake *FakeHealthchecker) HealthyReturns(result1 bool, result2 error)
func (*FakeHealthchecker) HealthyReturnsOnCall ¶
func (fake *FakeHealthchecker) HealthyReturnsOnCall(i int, result1 bool, result2 error)
func (*FakeHealthchecker) Invocations ¶
func (fake *FakeHealthchecker) Invocations() map[string][][]interface{}
type FakeSQLClient ¶
type FakeSQLClient struct { SetupStub func(*sql.DB) error WriteStub func(*sql.DB, time.Time) error CheckStub func(*sql.DB, time.Time) (bool, error) CleanupStub func(*sql.DB) error // contains filtered or unexported fields }
func (*FakeSQLClient) CheckArgsForCall ¶
func (*FakeSQLClient) CheckCallCount ¶
func (fake *FakeSQLClient) CheckCallCount() int
func (*FakeSQLClient) CheckReturns ¶
func (fake *FakeSQLClient) CheckReturns(result1 bool, result2 error)
func (*FakeSQLClient) CheckReturnsOnCall ¶
func (fake *FakeSQLClient) CheckReturnsOnCall(i int, result1 bool, result2 error)
func (*FakeSQLClient) CleanupArgsForCall ¶
func (fake *FakeSQLClient) CleanupArgsForCall(i int) *sql.DB
func (*FakeSQLClient) CleanupCallCount ¶
func (fake *FakeSQLClient) CleanupCallCount() int
func (*FakeSQLClient) CleanupReturns ¶
func (fake *FakeSQLClient) CleanupReturns(result1 error)
func (*FakeSQLClient) CleanupReturnsOnCall ¶
func (fake *FakeSQLClient) CleanupReturnsOnCall(i int, result1 error)
func (*FakeSQLClient) Invocations ¶
func (fake *FakeSQLClient) Invocations() map[string][][]interface{}
func (*FakeSQLClient) SetupArgsForCall ¶
func (fake *FakeSQLClient) SetupArgsForCall(i int) *sql.DB
func (*FakeSQLClient) SetupCallCount ¶
func (fake *FakeSQLClient) SetupCallCount() int
func (*FakeSQLClient) SetupReturns ¶
func (fake *FakeSQLClient) SetupReturns(result1 error)
func (*FakeSQLClient) SetupReturnsOnCall ¶
func (fake *FakeSQLClient) SetupReturnsOnCall(i int, result1 error)
func (*FakeSQLClient) WriteArgsForCall ¶
func (*FakeSQLClient) WriteCallCount ¶
func (fake *FakeSQLClient) WriteCallCount() int
func (*FakeSQLClient) WriteReturns ¶
func (fake *FakeSQLClient) WriteReturns(result1 error)
func (*FakeSQLClient) WriteReturnsOnCall ¶
func (fake *FakeSQLClient) WriteReturnsOnCall(i int, result1 error)
type FakeStateMachine ¶
type FakeStateMachine struct { BecomesUnhealthyStub func(time.Time) BecomesNotUnhealthyStub func(time.Time) RemainsInSameStateStub func(time.Time) GetStateStub func() canary.State // contains filtered or unexported fields }
func (*FakeStateMachine) BecomesNotUnhealthy ¶
func (fake *FakeStateMachine) BecomesNotUnhealthy(arg1 time.Time)
func (*FakeStateMachine) BecomesNotUnhealthyArgsForCall ¶
func (fake *FakeStateMachine) BecomesNotUnhealthyArgsForCall(i int) time.Time
func (*FakeStateMachine) BecomesNotUnhealthyCallCount ¶
func (fake *FakeStateMachine) BecomesNotUnhealthyCallCount() int
func (*FakeStateMachine) BecomesUnhealthy ¶
func (fake *FakeStateMachine) BecomesUnhealthy(arg1 time.Time)
func (*FakeStateMachine) BecomesUnhealthyArgsForCall ¶
func (fake *FakeStateMachine) BecomesUnhealthyArgsForCall(i int) time.Time
func (*FakeStateMachine) BecomesUnhealthyCallCount ¶
func (fake *FakeStateMachine) BecomesUnhealthyCallCount() int
func (*FakeStateMachine) GetState ¶
func (fake *FakeStateMachine) GetState() canary.State
func (*FakeStateMachine) GetStateCallCount ¶
func (fake *FakeStateMachine) GetStateCallCount() int
func (*FakeStateMachine) GetStateReturns ¶
func (fake *FakeStateMachine) GetStateReturns(result1 canary.State)
func (*FakeStateMachine) GetStateReturnsOnCall ¶
func (fake *FakeStateMachine) GetStateReturnsOnCall(i int, result1 canary.State)
func (*FakeStateMachine) Invocations ¶
func (fake *FakeStateMachine) Invocations() map[string][][]interface{}
func (*FakeStateMachine) RemainsInSameState ¶
func (fake *FakeStateMachine) RemainsInSameState(arg1 time.Time)
func (*FakeStateMachine) RemainsInSameStateArgsForCall ¶
func (fake *FakeStateMachine) RemainsInSameStateArgsForCall(i int) time.Time
func (*FakeStateMachine) RemainsInSameStateCallCount ¶
func (fake *FakeStateMachine) RemainsInSameStateCallCount() int
Click to show internal directories.
Click to hide internal directories.