Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CircuitBreakerTimer ¶
type CircuitBreakerTimer struct {
// contains filtered or unexported fields
}
CircuitBreakerTimer is a mock implementation of mailspree.CircuitBreakerTimer
func NewCircuitBreakerTimer ¶
func NewCircuitBreakerTimer() *CircuitBreakerTimer
func (*CircuitBreakerTimer) EndTimer ¶
func (t *CircuitBreakerTimer) EndTimer()
EndTimer sends a signal that the timer has ended.
func (*CircuitBreakerTimer) Run ¶
func (t *CircuitBreakerTimer) Run() <-chan int
Run returns a channel and it also sets it in the CircuitBreakerTimer struct, so that the timer can be ended using EndTimer.
Click to show internal directories.
Click to hide internal directories.