Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResetErrorSimulatorManager ¶
func ResetErrorSimulatorManager()
Types ¶
type ErrorSimulator ¶
type ErrorSimulator interface {
RaiseErrorOnNextCall(err error, methodName string)
SetCallback(errorSimulatorMethodCallback ErrorSimulatorMethodCallback)
}
type ErrorSimulatorManager ¶
type ErrorSimulatorManager struct {
NextError error
ConnectCallback ErrorSimulatorConnectCallback
}
func GetErrorSimulatorManager ¶
func GetErrorSimulatorManager() *ErrorSimulatorManager
func (*ErrorSimulatorManager) RaiseErrorOnNextConnect ¶
func (e *ErrorSimulatorManager) RaiseErrorOnNextConnect(err error)
func (*ErrorSimulatorManager) SetCallback ¶
func (e *ErrorSimulatorManager) SetCallback(errorSimulatorConnectCallback ErrorSimulatorConnectCallback)
Click to show internal directories.
Click to hide internal directories.