Documentation ¶
Index ¶
- type Cache
- type DataBase
- type MockCache
- type MockCache_DeleteAll_Call
- type MockCache_Delete_Call
- type MockCache_Expecter
- func (_e *MockCache_Expecter) Delete(key interface{}) *MockCache_Delete_Call
- func (_e *MockCache_Expecter) DeleteAll() *MockCache_DeleteAll_Call
- func (_e *MockCache_Expecter) Get(key interface{}) *MockCache_Get_Call
- func (_e *MockCache_Expecter) Set(key interface{}, value interface{}) *MockCache_Set_Call
- func (_e *MockCache_Expecter) Shutdown() *MockCache_Shutdown_Call
- type MockCache_Get_Call
- type MockCache_Set_Call
- type MockCache_Shutdown_Call
- type MockDataBase
- type MockDataBase_Expecter
- type MockDataBase_Shutdown_Call
- func (_c *MockDataBase_Shutdown_Call) Return() *MockDataBase_Shutdown_Call
- func (_c *MockDataBase_Shutdown_Call) Run(run func(ctx context.Context, logger logging.Logger)) *MockDataBase_Shutdown_Call
- func (_c *MockDataBase_Shutdown_Call) RunAndReturn(run func(context.Context, logging.Logger)) *MockDataBase_Shutdown_Call
- type MockStatus
- type MockStatus_Expecter
- type MockStatus_GetStatus_Call
- type MockWarning
- type MockWarning_Create_Call
- func (_c *MockWarning_Create_Call) Return(id string, err error) *MockWarning_Create_Call
- func (_c *MockWarning_Create_Call) Run(run func(in *warning.WarningCreate)) *MockWarning_Create_Call
- func (_c *MockWarning_Create_Call) RunAndReturn(run func(*warning.WarningCreate) (string, error)) *MockWarning_Create_Call
- type MockWarning_Expecter
- type MockWarning_GetOne_Call
- type Repository
- type Status
- type Warning
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCache ¶
MockCache is an autogenerated mock type for the Cache type
func NewMockCache ¶
NewMockCache creates a new instance of MockCache. 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 (*MockCache) EXPECT ¶
func (_m *MockCache) EXPECT() *MockCache_Expecter
type MockCache_DeleteAll_Call ¶
MockCache_DeleteAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteAll'
func (*MockCache_DeleteAll_Call) Return ¶
func (_c *MockCache_DeleteAll_Call) Return(err error) *MockCache_DeleteAll_Call
func (*MockCache_DeleteAll_Call) Run ¶
func (_c *MockCache_DeleteAll_Call) Run(run func()) *MockCache_DeleteAll_Call
func (*MockCache_DeleteAll_Call) RunAndReturn ¶
func (_c *MockCache_DeleteAll_Call) RunAndReturn(run func() error) *MockCache_DeleteAll_Call
type MockCache_Delete_Call ¶
MockCache_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*MockCache_Delete_Call) Return ¶
func (_c *MockCache_Delete_Call) Return(err error) *MockCache_Delete_Call
func (*MockCache_Delete_Call) Run ¶
func (_c *MockCache_Delete_Call) Run(run func(key string)) *MockCache_Delete_Call
func (*MockCache_Delete_Call) RunAndReturn ¶
func (_c *MockCache_Delete_Call) RunAndReturn(run func(string) error) *MockCache_Delete_Call
type MockCache_Expecter ¶
type MockCache_Expecter struct {
// contains filtered or unexported fields
}
func (*MockCache_Expecter) Delete ¶
func (_e *MockCache_Expecter) Delete(key interface{}) *MockCache_Delete_Call
Delete is a helper method to define mock.On call
- key string
func (*MockCache_Expecter) DeleteAll ¶
func (_e *MockCache_Expecter) DeleteAll() *MockCache_DeleteAll_Call
DeleteAll is a helper method to define mock.On call
func (*MockCache_Expecter) Get ¶
func (_e *MockCache_Expecter) Get(key interface{}) *MockCache_Get_Call
Get is a helper method to define mock.On call
- key string
func (*MockCache_Expecter) Set ¶
func (_e *MockCache_Expecter) Set(key interface{}, value interface{}) *MockCache_Set_Call
Set is a helper method to define mock.On call
- key string
- value interface{}
func (*MockCache_Expecter) Shutdown ¶
func (_e *MockCache_Expecter) Shutdown() *MockCache_Shutdown_Call
Shutdown is a helper method to define mock.On call
type MockCache_Get_Call ¶
MockCache_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*MockCache_Get_Call) Return ¶
func (_c *MockCache_Get_Call) Return(value string, err error) *MockCache_Get_Call
func (*MockCache_Get_Call) Run ¶
func (_c *MockCache_Get_Call) Run(run func(key string)) *MockCache_Get_Call
func (*MockCache_Get_Call) RunAndReturn ¶
func (_c *MockCache_Get_Call) RunAndReturn(run func(string) (string, error)) *MockCache_Get_Call
type MockCache_Set_Call ¶
MockCache_Set_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Set'
func (*MockCache_Set_Call) Return ¶
func (_c *MockCache_Set_Call) Return(err error) *MockCache_Set_Call
func (*MockCache_Set_Call) Run ¶
func (_c *MockCache_Set_Call) Run(run func(key string, value interface{})) *MockCache_Set_Call
func (*MockCache_Set_Call) RunAndReturn ¶
func (_c *MockCache_Set_Call) RunAndReturn(run func(string, interface{}) error) *MockCache_Set_Call
type MockCache_Shutdown_Call ¶
MockCache_Shutdown_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Shutdown'
func (*MockCache_Shutdown_Call) Return ¶
func (_c *MockCache_Shutdown_Call) Return(err error) *MockCache_Shutdown_Call
func (*MockCache_Shutdown_Call) Run ¶
func (_c *MockCache_Shutdown_Call) Run(run func()) *MockCache_Shutdown_Call
func (*MockCache_Shutdown_Call) RunAndReturn ¶
func (_c *MockCache_Shutdown_Call) RunAndReturn(run func() error) *MockCache_Shutdown_Call
type MockDataBase ¶
MockDataBase is an autogenerated mock type for the DataBase type
func NewMockDataBase ¶
func NewMockDataBase(t interface { mock.TestingT Cleanup(func()) }) *MockDataBase
NewMockDataBase creates a new instance of MockDataBase. 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 (*MockDataBase) EXPECT ¶
func (_m *MockDataBase) EXPECT() *MockDataBase_Expecter
type MockDataBase_Expecter ¶
type MockDataBase_Expecter struct {
// contains filtered or unexported fields
}
func (*MockDataBase_Expecter) Shutdown ¶
func (_e *MockDataBase_Expecter) Shutdown(ctx interface{}, logger interface{}) *MockDataBase_Shutdown_Call
Shutdown is a helper method to define mock.On call
- ctx context.Context
- logger logging.Logger
type MockDataBase_Shutdown_Call ¶
MockDataBase_Shutdown_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Shutdown'
func (*MockDataBase_Shutdown_Call) Return ¶
func (_c *MockDataBase_Shutdown_Call) Return() *MockDataBase_Shutdown_Call
func (*MockDataBase_Shutdown_Call) Run ¶
func (_c *MockDataBase_Shutdown_Call) Run(run func(ctx context.Context, logger logging.Logger)) *MockDataBase_Shutdown_Call
func (*MockDataBase_Shutdown_Call) RunAndReturn ¶
func (_c *MockDataBase_Shutdown_Call) RunAndReturn(run func(context.Context, logging.Logger)) *MockDataBase_Shutdown_Call
type MockStatus ¶
MockStatus is an autogenerated mock type for the Status type
func NewMockStatus ¶
func NewMockStatus(t interface { mock.TestingT Cleanup(func()) }) *MockStatus
NewMockStatus creates a new instance of MockStatus. 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 (*MockStatus) EXPECT ¶
func (_m *MockStatus) EXPECT() *MockStatus_Expecter
func (*MockStatus) GetStatus ¶
func (_m *MockStatus) GetStatus() (bool, error)
GetStatus provides a mock function with given fields:
type MockStatus_Expecter ¶
type MockStatus_Expecter struct {
// contains filtered or unexported fields
}
func (*MockStatus_Expecter) GetStatus ¶
func (_e *MockStatus_Expecter) GetStatus() *MockStatus_GetStatus_Call
GetStatus is a helper method to define mock.On call
type MockStatus_GetStatus_Call ¶
MockStatus_GetStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStatus'
func (*MockStatus_GetStatus_Call) Return ¶
func (_c *MockStatus_GetStatus_Call) Return(status bool, err error) *MockStatus_GetStatus_Call
func (*MockStatus_GetStatus_Call) Run ¶
func (_c *MockStatus_GetStatus_Call) Run(run func()) *MockStatus_GetStatus_Call
func (*MockStatus_GetStatus_Call) RunAndReturn ¶
func (_c *MockStatus_GetStatus_Call) RunAndReturn(run func() (bool, error)) *MockStatus_GetStatus_Call
type MockWarning ¶
MockWarning is an autogenerated mock type for the Warning type
func NewMockWarning ¶
func NewMockWarning(t interface { mock.TestingT Cleanup(func()) }) *MockWarning
NewMockWarning creates a new instance of MockWarning. 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 (*MockWarning) Create ¶
func (_m *MockWarning) Create(in *warning.WarningCreate) (string, error)
Create provides a mock function with given fields: in
func (*MockWarning) EXPECT ¶
func (_m *MockWarning) EXPECT() *MockWarning_Expecter
func (*MockWarning) GetOne ¶
func (_m *MockWarning) GetOne(out *warning.WarningCreate) error
GetOne provides a mock function with given fields: out
type MockWarning_Create_Call ¶
MockWarning_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*MockWarning_Create_Call) Return ¶
func (_c *MockWarning_Create_Call) Return(id string, err error) *MockWarning_Create_Call
func (*MockWarning_Create_Call) Run ¶
func (_c *MockWarning_Create_Call) Run(run func(in *warning.WarningCreate)) *MockWarning_Create_Call
func (*MockWarning_Create_Call) RunAndReturn ¶
func (_c *MockWarning_Create_Call) RunAndReturn(run func(*warning.WarningCreate) (string, error)) *MockWarning_Create_Call
type MockWarning_Expecter ¶
type MockWarning_Expecter struct {
// contains filtered or unexported fields
}
func (*MockWarning_Expecter) Create ¶
func (_e *MockWarning_Expecter) Create(in interface{}) *MockWarning_Create_Call
Create is a helper method to define mock.On call
- in *warning.WarningCreate
func (*MockWarning_Expecter) GetOne ¶
func (_e *MockWarning_Expecter) GetOne(out interface{}) *MockWarning_GetOne_Call
GetOne is a helper method to define mock.On call
- out *warning.WarningCreate
type MockWarning_GetOne_Call ¶
MockWarning_GetOne_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOne'
func (*MockWarning_GetOne_Call) Return ¶
func (_c *MockWarning_GetOne_Call) Return(err error) *MockWarning_GetOne_Call
func (*MockWarning_GetOne_Call) Run ¶
func (_c *MockWarning_GetOne_Call) Run(run func(out *warning.WarningCreate)) *MockWarning_GetOne_Call
func (*MockWarning_GetOne_Call) RunAndReturn ¶
func (_c *MockWarning_GetOne_Call) RunAndReturn(run func(*warning.WarningCreate) error) *MockWarning_GetOne_Call
type Repository ¶
type Repository struct { DataBase DataBase Cache Status Warning // contains filtered or unexported fields }
func NewRepository ¶
func (*Repository) Stop ¶
func (r *Repository) Stop()
type Warning ¶
type Warning interface { Create(in *warning.WarningCreate) (id string, err error) GetOne(out *warning.WarningCreate) (err error) }