Documentation
¶
Index ¶
- type MockManager
- func (_mock *MockManager) DeleteToken(appKey string) error
- func (_m *MockManager) EXPECT() *MockManager_Expecter
- func (_mock *MockManager) GetToken(appKey string) (string, time.Time, bool)
- func (_mock *MockManager) SetToken(appKey string, token string, expiresAt time.Time) error
- func (_mock *MockManager) WaitForAuth(appKey string)
- type MockManager_DeleteToken_Call
- func (_c *MockManager_DeleteToken_Call) Return(err error) *MockManager_DeleteToken_Call
- func (_c *MockManager_DeleteToken_Call) Run(run func(appKey string)) *MockManager_DeleteToken_Call
- func (_c *MockManager_DeleteToken_Call) RunAndReturn(run func(appKey string) error) *MockManager_DeleteToken_Call
- type MockManager_Expecter
- func (_e *MockManager_Expecter) DeleteToken(appKey interface{}) *MockManager_DeleteToken_Call
- func (_e *MockManager_Expecter) GetToken(appKey interface{}) *MockManager_GetToken_Call
- func (_e *MockManager_Expecter) SetToken(appKey interface{}, token interface{}, expiresAt interface{}) *MockManager_SetToken_Call
- func (_e *MockManager_Expecter) WaitForAuth(appKey interface{}) *MockManager_WaitForAuth_Call
- type MockManager_GetToken_Call
- func (_c *MockManager_GetToken_Call) Return(s string, time1 time.Time, b bool) *MockManager_GetToken_Call
- func (_c *MockManager_GetToken_Call) Run(run func(appKey string)) *MockManager_GetToken_Call
- func (_c *MockManager_GetToken_Call) RunAndReturn(run func(appKey string) (string, time.Time, bool)) *MockManager_GetToken_Call
- type MockManager_SetToken_Call
- func (_c *MockManager_SetToken_Call) Return(err error) *MockManager_SetToken_Call
- func (_c *MockManager_SetToken_Call) Run(run func(appKey string, token string, expiresAt time.Time)) *MockManager_SetToken_Call
- func (_c *MockManager_SetToken_Call) RunAndReturn(run func(appKey string, token string, expiresAt time.Time) error) *MockManager_SetToken_Call
- type MockManager_WaitForAuth_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockManager ¶
MockManager is an autogenerated mock type for the Manager type
func NewMockManager ¶
func NewMockManager(t interface {
mock.TestingT
Cleanup(func())
}) *MockManager
NewMockManager creates a new instance of MockManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockManager) DeleteToken ¶
func (_mock *MockManager) DeleteToken(appKey string) error
DeleteToken provides a mock function for the type MockManager
func (*MockManager) EXPECT ¶
func (_m *MockManager) EXPECT() *MockManager_Expecter
func (*MockManager) WaitForAuth ¶
func (_mock *MockManager) WaitForAuth(appKey string)
WaitForAuth provides a mock function for the type MockManager
type MockManager_DeleteToken_Call ¶
MockManager_DeleteToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteToken'
func (*MockManager_DeleteToken_Call) Return ¶
func (_c *MockManager_DeleteToken_Call) Return(err error) *MockManager_DeleteToken_Call
func (*MockManager_DeleteToken_Call) Run ¶
func (_c *MockManager_DeleteToken_Call) Run(run func(appKey string)) *MockManager_DeleteToken_Call
func (*MockManager_DeleteToken_Call) RunAndReturn ¶
func (_c *MockManager_DeleteToken_Call) RunAndReturn(run func(appKey string) error) *MockManager_DeleteToken_Call
type MockManager_Expecter ¶
type MockManager_Expecter struct {
// contains filtered or unexported fields
}
func (*MockManager_Expecter) DeleteToken ¶
func (_e *MockManager_Expecter) DeleteToken(appKey interface{}) *MockManager_DeleteToken_Call
DeleteToken is a helper method to define mock.On call
- appKey string
func (*MockManager_Expecter) GetToken ¶
func (_e *MockManager_Expecter) GetToken(appKey interface{}) *MockManager_GetToken_Call
GetToken is a helper method to define mock.On call
- appKey string
func (*MockManager_Expecter) SetToken ¶
func (_e *MockManager_Expecter) SetToken(appKey interface{}, token interface{}, expiresAt interface{}) *MockManager_SetToken_Call
SetToken is a helper method to define mock.On call
- appKey string
- token string
- expiresAt time.Time
func (*MockManager_Expecter) WaitForAuth ¶
func (_e *MockManager_Expecter) WaitForAuth(appKey interface{}) *MockManager_WaitForAuth_Call
WaitForAuth is a helper method to define mock.On call
- appKey string
type MockManager_GetToken_Call ¶
MockManager_GetToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetToken'
func (*MockManager_GetToken_Call) Return ¶
func (_c *MockManager_GetToken_Call) Return(s string, time1 time.Time, b bool) *MockManager_GetToken_Call
func (*MockManager_GetToken_Call) Run ¶
func (_c *MockManager_GetToken_Call) Run(run func(appKey string)) *MockManager_GetToken_Call
func (*MockManager_GetToken_Call) RunAndReturn ¶
func (_c *MockManager_GetToken_Call) RunAndReturn(run func(appKey string) (string, time.Time, bool)) *MockManager_GetToken_Call
type MockManager_SetToken_Call ¶
MockManager_SetToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetToken'
func (*MockManager_SetToken_Call) Return ¶
func (_c *MockManager_SetToken_Call) Return(err error) *MockManager_SetToken_Call
func (*MockManager_SetToken_Call) Run ¶
func (_c *MockManager_SetToken_Call) Run(run func(appKey string, token string, expiresAt time.Time)) *MockManager_SetToken_Call
func (*MockManager_SetToken_Call) RunAndReturn ¶
func (_c *MockManager_SetToken_Call) RunAndReturn(run func(appKey string, token string, expiresAt time.Time) error) *MockManager_SetToken_Call
type MockManager_WaitForAuth_Call ¶
MockManager_WaitForAuth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WaitForAuth'
func (*MockManager_WaitForAuth_Call) Return ¶
func (_c *MockManager_WaitForAuth_Call) Return() *MockManager_WaitForAuth_Call
func (*MockManager_WaitForAuth_Call) Run ¶
func (_c *MockManager_WaitForAuth_Call) Run(run func(appKey string)) *MockManager_WaitForAuth_Call
func (*MockManager_WaitForAuth_Call) RunAndReturn ¶
func (_c *MockManager_WaitForAuth_Call) RunAndReturn(run func(appKey string)) *MockManager_WaitForAuth_Call