Documentation
¶
Index ¶
- type Logger
- func (_m *Logger) Debug(ctx context.Context, msg string, args ...interface{})
- func (_m *Logger) EXPECT() *Logger_Expecter
- func (_m *Logger) Error(ctx context.Context, msg string, args ...interface{})
- func (_m *Logger) Info(ctx context.Context, msg string, args ...interface{})
- func (_m *Logger) Warn(ctx context.Context, msg string, args ...interface{})
- type Logger_Debug_Call
- type Logger_Error_Call
- type Logger_Expecter
- func (_e *Logger_Expecter) Debug(ctx interface{}, msg interface{}, args ...interface{}) *Logger_Debug_Call
- func (_e *Logger_Expecter) Error(ctx interface{}, msg interface{}, args ...interface{}) *Logger_Error_Call
- func (_e *Logger_Expecter) Info(ctx interface{}, msg interface{}, args ...interface{}) *Logger_Info_Call
- func (_e *Logger_Expecter) Warn(ctx interface{}, msg interface{}, args ...interface{}) *Logger_Warn_Call
- type Logger_Info_Call
- type Logger_Warn_Call
- type Storage
- func (_m *Storage) Connect(ctx context.Context) error
- func (_m *Storage) CreateEvent(ctx context.Context, event *types.Event) (*types.Event, error)
- func (_m *Storage) DeleteEvent(ctx context.Context, id uuid.UUID) error
- func (_m *Storage) EXPECT() *Storage_Expecter
- func (_m *Storage) GetAllUserEvents(ctx context.Context, userID string) ([]*types.Event, error)
- func (_m *Storage) GetEvent(ctx context.Context, id uuid.UUID) (*types.Event, error)
- func (_m *Storage) GetEventsForDay(ctx context.Context, date time.Time, userID *string) ([]*types.Event, error)
- func (_m *Storage) GetEventsForMonth(ctx context.Context, date time.Time, userID *string) ([]*types.Event, error)
- func (_m *Storage) GetEventsForPeriod(ctx context.Context, dateStart time.Time, dateEnd time.Time, userID *string) ([]*types.Event, error)
- func (_m *Storage) GetEventsForWeek(ctx context.Context, date time.Time, userID *string) ([]*types.Event, error)
- func (_m *Storage) UpdateEvent(ctx context.Context, id uuid.UUID, data *types.EventData) (*types.Event, error)
- type Storage_Connect_Call
- type Storage_CreateEvent_Call
- func (_c *Storage_CreateEvent_Call) Return(_a0 *types.Event, _a1 error) *Storage_CreateEvent_Call
- func (_c *Storage_CreateEvent_Call) Run(run func(ctx context.Context, event *types.Event)) *Storage_CreateEvent_Call
- func (_c *Storage_CreateEvent_Call) RunAndReturn(run func(context.Context, *types.Event) (*types.Event, error)) *Storage_CreateEvent_Call
- type Storage_DeleteEvent_Call
- func (_c *Storage_DeleteEvent_Call) Return(_a0 error) *Storage_DeleteEvent_Call
- func (_c *Storage_DeleteEvent_Call) Run(run func(ctx context.Context, id uuid.UUID)) *Storage_DeleteEvent_Call
- func (_c *Storage_DeleteEvent_Call) RunAndReturn(run func(context.Context, uuid.UUID) error) *Storage_DeleteEvent_Call
- type Storage_Expecter
- func (_e *Storage_Expecter) Connect(ctx interface{}) *Storage_Connect_Call
- func (_e *Storage_Expecter) CreateEvent(ctx interface{}, event interface{}) *Storage_CreateEvent_Call
- func (_e *Storage_Expecter) DeleteEvent(ctx interface{}, id interface{}) *Storage_DeleteEvent_Call
- func (_e *Storage_Expecter) GetAllUserEvents(ctx interface{}, userID interface{}) *Storage_GetAllUserEvents_Call
- func (_e *Storage_Expecter) GetEvent(ctx interface{}, id interface{}) *Storage_GetEvent_Call
- func (_e *Storage_Expecter) GetEventsForDay(ctx interface{}, date interface{}, userID interface{}) *Storage_GetEventsForDay_Call
- func (_e *Storage_Expecter) GetEventsForMonth(ctx interface{}, date interface{}, userID interface{}) *Storage_GetEventsForMonth_Call
- func (_e *Storage_Expecter) GetEventsForPeriod(ctx interface{}, dateStart interface{}, dateEnd interface{}, ...) *Storage_GetEventsForPeriod_Call
- func (_e *Storage_Expecter) GetEventsForWeek(ctx interface{}, date interface{}, userID interface{}) *Storage_GetEventsForWeek_Call
- func (_e *Storage_Expecter) UpdateEvent(ctx interface{}, id interface{}, data interface{}) *Storage_UpdateEvent_Call
- type Storage_GetAllUserEvents_Call
- func (_c *Storage_GetAllUserEvents_Call) Return(_a0 []*types.Event, _a1 error) *Storage_GetAllUserEvents_Call
- func (_c *Storage_GetAllUserEvents_Call) Run(run func(ctx context.Context, userID string)) *Storage_GetAllUserEvents_Call
- func (_c *Storage_GetAllUserEvents_Call) RunAndReturn(run func(context.Context, string) ([]*types.Event, error)) *Storage_GetAllUserEvents_Call
- type Storage_GetEvent_Call
- func (_c *Storage_GetEvent_Call) Return(_a0 *types.Event, _a1 error) *Storage_GetEvent_Call
- func (_c *Storage_GetEvent_Call) Run(run func(ctx context.Context, id uuid.UUID)) *Storage_GetEvent_Call
- func (_c *Storage_GetEvent_Call) RunAndReturn(run func(context.Context, uuid.UUID) (*types.Event, error)) *Storage_GetEvent_Call
- type Storage_GetEventsForDay_Call
- func (_c *Storage_GetEventsForDay_Call) Return(_a0 []*types.Event, _a1 error) *Storage_GetEventsForDay_Call
- func (_c *Storage_GetEventsForDay_Call) Run(run func(ctx context.Context, date time.Time, userID *string)) *Storage_GetEventsForDay_Call
- func (_c *Storage_GetEventsForDay_Call) RunAndReturn(run func(context.Context, time.Time, *string) ([]*types.Event, error)) *Storage_GetEventsForDay_Call
- type Storage_GetEventsForMonth_Call
- func (_c *Storage_GetEventsForMonth_Call) Return(_a0 []*types.Event, _a1 error) *Storage_GetEventsForMonth_Call
- func (_c *Storage_GetEventsForMonth_Call) Run(run func(ctx context.Context, date time.Time, userID *string)) *Storage_GetEventsForMonth_Call
- func (_c *Storage_GetEventsForMonth_Call) RunAndReturn(run func(context.Context, time.Time, *string) ([]*types.Event, error)) *Storage_GetEventsForMonth_Call
- type Storage_GetEventsForPeriod_Call
- type Storage_GetEventsForWeek_Call
- func (_c *Storage_GetEventsForWeek_Call) Return(_a0 []*types.Event, _a1 error) *Storage_GetEventsForWeek_Call
- func (_c *Storage_GetEventsForWeek_Call) Run(run func(ctx context.Context, date time.Time, userID *string)) *Storage_GetEventsForWeek_Call
- func (_c *Storage_GetEventsForWeek_Call) RunAndReturn(run func(context.Context, time.Time, *string) ([]*types.Event, error)) *Storage_GetEventsForWeek_Call
- type Storage_UpdateEvent_Call
- func (_c *Storage_UpdateEvent_Call) Return(_a0 *types.Event, _a1 error) *Storage_UpdateEvent_Call
- func (_c *Storage_UpdateEvent_Call) Run(run func(ctx context.Context, id uuid.UUID, data *types.EventData)) *Storage_UpdateEvent_Call
- func (_c *Storage_UpdateEvent_Call) RunAndReturn(run func(context.Context, uuid.UUID, *types.EventData) (*types.Event, error)) *Storage_UpdateEvent_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
Logger is an autogenerated mock type for the Logger type
func NewLogger ¶
NewLogger creates a new instance of Logger. 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 (*Logger) EXPECT ¶
func (_m *Logger) EXPECT() *Logger_Expecter
type Logger_Debug_Call ¶
Logger_Debug_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Debug'
func (*Logger_Debug_Call) Return ¶
func (_c *Logger_Debug_Call) Return() *Logger_Debug_Call
func (*Logger_Debug_Call) Run ¶
func (_c *Logger_Debug_Call) Run(run func(ctx context.Context, msg string, args ...interface{})) *Logger_Debug_Call
func (*Logger_Debug_Call) RunAndReturn ¶
func (_c *Logger_Debug_Call) RunAndReturn(run func(context.Context, string, ...interface{})) *Logger_Debug_Call
type Logger_Error_Call ¶
Logger_Error_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Error'
func (*Logger_Error_Call) Return ¶
func (_c *Logger_Error_Call) Return() *Logger_Error_Call
func (*Logger_Error_Call) Run ¶
func (_c *Logger_Error_Call) Run(run func(ctx context.Context, msg string, args ...interface{})) *Logger_Error_Call
func (*Logger_Error_Call) RunAndReturn ¶
func (_c *Logger_Error_Call) RunAndReturn(run func(context.Context, string, ...interface{})) *Logger_Error_Call
type Logger_Expecter ¶
type Logger_Expecter struct {
// contains filtered or unexported fields
}
func (*Logger_Expecter) Debug ¶
func (_e *Logger_Expecter) Debug(ctx interface{}, msg interface{}, args ...interface{}) *Logger_Debug_Call
Debug is a helper method to define mock.On call
- ctx context.Context
- msg string
- args ...interface{}
func (*Logger_Expecter) Error ¶
func (_e *Logger_Expecter) Error(ctx interface{}, msg interface{}, args ...interface{}) *Logger_Error_Call
Error is a helper method to define mock.On call
- ctx context.Context
- msg string
- args ...interface{}
func (*Logger_Expecter) Info ¶
func (_e *Logger_Expecter) Info(ctx interface{}, msg interface{}, args ...interface{}) *Logger_Info_Call
Info is a helper method to define mock.On call
- ctx context.Context
- msg string
- args ...interface{}
func (*Logger_Expecter) Warn ¶
func (_e *Logger_Expecter) Warn(ctx interface{}, msg interface{}, args ...interface{}) *Logger_Warn_Call
Warn is a helper method to define mock.On call
- ctx context.Context
- msg string
- args ...interface{}
type Logger_Info_Call ¶
Logger_Info_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Info'
func (*Logger_Info_Call) Return ¶
func (_c *Logger_Info_Call) Return() *Logger_Info_Call
func (*Logger_Info_Call) Run ¶
func (_c *Logger_Info_Call) Run(run func(ctx context.Context, msg string, args ...interface{})) *Logger_Info_Call
func (*Logger_Info_Call) RunAndReturn ¶
func (_c *Logger_Info_Call) RunAndReturn(run func(context.Context, string, ...interface{})) *Logger_Info_Call
type Logger_Warn_Call ¶
Logger_Warn_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Warn'
func (*Logger_Warn_Call) Return ¶
func (_c *Logger_Warn_Call) Return() *Logger_Warn_Call
func (*Logger_Warn_Call) Run ¶
func (_c *Logger_Warn_Call) Run(run func(ctx context.Context, msg string, args ...interface{})) *Logger_Warn_Call
func (*Logger_Warn_Call) RunAndReturn ¶
func (_c *Logger_Warn_Call) RunAndReturn(run func(context.Context, string, ...interface{})) *Logger_Warn_Call
type Storage ¶
Storage is an autogenerated mock type for the Storage type
func NewStorage ¶
NewStorage creates a new instance of Storage. 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 (*Storage) CreateEvent ¶
CreateEvent provides a mock function with given fields: ctx, event
func (*Storage) DeleteEvent ¶
DeleteEvent provides a mock function with given fields: ctx, id
func (*Storage) EXPECT ¶
func (_m *Storage) EXPECT() *Storage_Expecter
func (*Storage) GetAllUserEvents ¶
GetAllUserEvents provides a mock function with given fields: ctx, userID
func (*Storage) GetEventsForDay ¶
func (_m *Storage) GetEventsForDay(ctx context.Context, date time.Time, userID *string) ([]*types.Event, error)
GetEventsForDay provides a mock function with given fields: ctx, date, userID
func (*Storage) GetEventsForMonth ¶
func (_m *Storage) GetEventsForMonth(ctx context.Context, date time.Time, userID *string) ([]*types.Event, error)
GetEventsForMonth provides a mock function with given fields: ctx, date, userID
func (*Storage) GetEventsForPeriod ¶
func (_m *Storage) GetEventsForPeriod(ctx context.Context, dateStart time.Time, dateEnd time.Time, userID *string) ([]*types.Event, error)
GetEventsForPeriod provides a mock function with given fields: ctx, dateStart, dateEnd, userID
type Storage_Connect_Call ¶
Storage_Connect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Connect'
func (*Storage_Connect_Call) Return ¶
func (_c *Storage_Connect_Call) Return(_a0 error) *Storage_Connect_Call
func (*Storage_Connect_Call) Run ¶
func (_c *Storage_Connect_Call) Run(run func(ctx context.Context)) *Storage_Connect_Call
func (*Storage_Connect_Call) RunAndReturn ¶
func (_c *Storage_Connect_Call) RunAndReturn(run func(context.Context) error) *Storage_Connect_Call
type Storage_CreateEvent_Call ¶
Storage_CreateEvent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateEvent'
func (*Storage_CreateEvent_Call) Return ¶
func (_c *Storage_CreateEvent_Call) Return(_a0 *types.Event, _a1 error) *Storage_CreateEvent_Call
func (*Storage_CreateEvent_Call) Run ¶
func (_c *Storage_CreateEvent_Call) Run(run func(ctx context.Context, event *types.Event)) *Storage_CreateEvent_Call
func (*Storage_CreateEvent_Call) RunAndReturn ¶
func (_c *Storage_CreateEvent_Call) RunAndReturn(run func(context.Context, *types.Event) (*types.Event, error)) *Storage_CreateEvent_Call
type Storage_DeleteEvent_Call ¶
Storage_DeleteEvent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteEvent'
func (*Storage_DeleteEvent_Call) Return ¶
func (_c *Storage_DeleteEvent_Call) Return(_a0 error) *Storage_DeleteEvent_Call
func (*Storage_DeleteEvent_Call) Run ¶
func (_c *Storage_DeleteEvent_Call) Run(run func(ctx context.Context, id uuid.UUID)) *Storage_DeleteEvent_Call
func (*Storage_DeleteEvent_Call) RunAndReturn ¶
func (_c *Storage_DeleteEvent_Call) RunAndReturn(run func(context.Context, uuid.UUID) error) *Storage_DeleteEvent_Call
type Storage_Expecter ¶
type Storage_Expecter struct {
// contains filtered or unexported fields
}
func (*Storage_Expecter) Connect ¶
func (_e *Storage_Expecter) Connect(ctx interface{}) *Storage_Connect_Call
Connect is a helper method to define mock.On call
- ctx context.Context
func (*Storage_Expecter) CreateEvent ¶
func (_e *Storage_Expecter) CreateEvent(ctx interface{}, event interface{}) *Storage_CreateEvent_Call
CreateEvent is a helper method to define mock.On call
- ctx context.Context
- event *types.Event
func (*Storage_Expecter) DeleteEvent ¶
func (_e *Storage_Expecter) DeleteEvent(ctx interface{}, id interface{}) *Storage_DeleteEvent_Call
DeleteEvent is a helper method to define mock.On call
- ctx context.Context
- id uuid.UUID
func (*Storage_Expecter) GetAllUserEvents ¶
func (_e *Storage_Expecter) GetAllUserEvents(ctx interface{}, userID interface{}) *Storage_GetAllUserEvents_Call
GetAllUserEvents is a helper method to define mock.On call
- ctx context.Context
- userID string
func (*Storage_Expecter) GetEvent ¶
func (_e *Storage_Expecter) GetEvent(ctx interface{}, id interface{}) *Storage_GetEvent_Call
GetEvent is a helper method to define mock.On call
- ctx context.Context
- id uuid.UUID
func (*Storage_Expecter) GetEventsForDay ¶
func (_e *Storage_Expecter) GetEventsForDay(ctx interface{}, date interface{}, userID interface{}) *Storage_GetEventsForDay_Call
GetEventsForDay is a helper method to define mock.On call
- ctx context.Context
- date time.Time
- userID *string
func (*Storage_Expecter) GetEventsForMonth ¶
func (_e *Storage_Expecter) GetEventsForMonth(ctx interface{}, date interface{}, userID interface{}) *Storage_GetEventsForMonth_Call
GetEventsForMonth is a helper method to define mock.On call
- ctx context.Context
- date time.Time
- userID *string
func (*Storage_Expecter) GetEventsForPeriod ¶
func (_e *Storage_Expecter) GetEventsForPeriod(ctx interface{}, dateStart interface{}, dateEnd interface{}, userID interface{}) *Storage_GetEventsForPeriod_Call
GetEventsForPeriod is a helper method to define mock.On call
- ctx context.Context
- dateStart time.Time
- dateEnd time.Time
- userID *string
func (*Storage_Expecter) GetEventsForWeek ¶
func (_e *Storage_Expecter) GetEventsForWeek(ctx interface{}, date interface{}, userID interface{}) *Storage_GetEventsForWeek_Call
GetEventsForWeek is a helper method to define mock.On call
- ctx context.Context
- date time.Time
- userID *string
func (*Storage_Expecter) UpdateEvent ¶
func (_e *Storage_Expecter) UpdateEvent(ctx interface{}, id interface{}, data interface{}) *Storage_UpdateEvent_Call
UpdateEvent is a helper method to define mock.On call
- ctx context.Context
- id uuid.UUID
- data *types.EventData
type Storage_GetAllUserEvents_Call ¶
Storage_GetAllUserEvents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllUserEvents'
func (*Storage_GetAllUserEvents_Call) Return ¶
func (_c *Storage_GetAllUserEvents_Call) Return(_a0 []*types.Event, _a1 error) *Storage_GetAllUserEvents_Call
func (*Storage_GetAllUserEvents_Call) Run ¶
func (_c *Storage_GetAllUserEvents_Call) Run(run func(ctx context.Context, userID string)) *Storage_GetAllUserEvents_Call
func (*Storage_GetAllUserEvents_Call) RunAndReturn ¶
func (_c *Storage_GetAllUserEvents_Call) RunAndReturn(run func(context.Context, string) ([]*types.Event, error)) *Storage_GetAllUserEvents_Call
type Storage_GetEvent_Call ¶
Storage_GetEvent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEvent'
func (*Storage_GetEvent_Call) Return ¶
func (_c *Storage_GetEvent_Call) Return(_a0 *types.Event, _a1 error) *Storage_GetEvent_Call
func (*Storage_GetEvent_Call) Run ¶
func (_c *Storage_GetEvent_Call) Run(run func(ctx context.Context, id uuid.UUID)) *Storage_GetEvent_Call
func (*Storage_GetEvent_Call) RunAndReturn ¶
func (_c *Storage_GetEvent_Call) RunAndReturn(run func(context.Context, uuid.UUID) (*types.Event, error)) *Storage_GetEvent_Call
type Storage_GetEventsForDay_Call ¶
Storage_GetEventsForDay_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEventsForDay'
func (*Storage_GetEventsForDay_Call) Return ¶
func (_c *Storage_GetEventsForDay_Call) Return(_a0 []*types.Event, _a1 error) *Storage_GetEventsForDay_Call
func (*Storage_GetEventsForDay_Call) Run ¶
func (_c *Storage_GetEventsForDay_Call) Run(run func(ctx context.Context, date time.Time, userID *string)) *Storage_GetEventsForDay_Call
func (*Storage_GetEventsForDay_Call) RunAndReturn ¶
func (_c *Storage_GetEventsForDay_Call) RunAndReturn(run func(context.Context, time.Time, *string) ([]*types.Event, error)) *Storage_GetEventsForDay_Call
type Storage_GetEventsForMonth_Call ¶
Storage_GetEventsForMonth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEventsForMonth'
func (*Storage_GetEventsForMonth_Call) Return ¶
func (_c *Storage_GetEventsForMonth_Call) Return(_a0 []*types.Event, _a1 error) *Storage_GetEventsForMonth_Call
func (*Storage_GetEventsForMonth_Call) Run ¶
func (_c *Storage_GetEventsForMonth_Call) Run(run func(ctx context.Context, date time.Time, userID *string)) *Storage_GetEventsForMonth_Call
func (*Storage_GetEventsForMonth_Call) RunAndReturn ¶
func (_c *Storage_GetEventsForMonth_Call) RunAndReturn(run func(context.Context, time.Time, *string) ([]*types.Event, error)) *Storage_GetEventsForMonth_Call
type Storage_GetEventsForPeriod_Call ¶
Storage_GetEventsForPeriod_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEventsForPeriod'
func (*Storage_GetEventsForPeriod_Call) Return ¶
func (_c *Storage_GetEventsForPeriod_Call) Return(_a0 []*types.Event, _a1 error) *Storage_GetEventsForPeriod_Call
func (*Storage_GetEventsForPeriod_Call) Run ¶
func (_c *Storage_GetEventsForPeriod_Call) Run(run func(ctx context.Context, dateStart time.Time, dateEnd time.Time, userID *string)) *Storage_GetEventsForPeriod_Call
func (*Storage_GetEventsForPeriod_Call) RunAndReturn ¶
type Storage_GetEventsForWeek_Call ¶
Storage_GetEventsForWeek_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEventsForWeek'
func (*Storage_GetEventsForWeek_Call) Return ¶
func (_c *Storage_GetEventsForWeek_Call) Return(_a0 []*types.Event, _a1 error) *Storage_GetEventsForWeek_Call
func (*Storage_GetEventsForWeek_Call) Run ¶
func (_c *Storage_GetEventsForWeek_Call) Run(run func(ctx context.Context, date time.Time, userID *string)) *Storage_GetEventsForWeek_Call
func (*Storage_GetEventsForWeek_Call) RunAndReturn ¶
func (_c *Storage_GetEventsForWeek_Call) RunAndReturn(run func(context.Context, time.Time, *string) ([]*types.Event, error)) *Storage_GetEventsForWeek_Call
type Storage_UpdateEvent_Call ¶
Storage_UpdateEvent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateEvent'
func (*Storage_UpdateEvent_Call) Return ¶
func (_c *Storage_UpdateEvent_Call) Return(_a0 *types.Event, _a1 error) *Storage_UpdateEvent_Call
func (*Storage_UpdateEvent_Call) Run ¶
func (_c *Storage_UpdateEvent_Call) Run(run func(ctx context.Context, id uuid.UUID, data *types.EventData)) *Storage_UpdateEvent_Call