Documentation ¶
Index ¶
- type Sink
- func (_m *Sink) CreateEvent(ctx context.Context, e models.Event) error
- func (_m *Sink) DeleteEvent(ctx context.Context, e models.Event) error
- func (_m *Sink) EXPECT() *Sink_Expecter
- func (_m *Sink) EventsInTimeframe(ctx context.Context, start time.Time, end time.Time) ([]models.Event, error)
- func (_m *Sink) GetCalendarID() string
- func (_m *Sink) Name() string
- func (_m *Sink) UpdateEvent(ctx context.Context, e models.Event) error
- type Sink_CreateEvent_Call
- type Sink_DeleteEvent_Call
- type Sink_EventsInTimeframe_Call
- func (_c *Sink_EventsInTimeframe_Call) Return(_a0 []models.Event, _a1 error) *Sink_EventsInTimeframe_Call
- func (_c *Sink_EventsInTimeframe_Call) Run(run func(ctx context.Context, start time.Time, end time.Time)) *Sink_EventsInTimeframe_Call
- func (_c *Sink_EventsInTimeframe_Call) RunAndReturn(run func(context.Context, time.Time, time.Time) ([]models.Event, error)) *Sink_EventsInTimeframe_Call
- type Sink_Expecter
- func (_e *Sink_Expecter) CreateEvent(ctx interface{}, e interface{}) *Sink_CreateEvent_Call
- func (_e *Sink_Expecter) DeleteEvent(ctx interface{}, e interface{}) *Sink_DeleteEvent_Call
- func (_e *Sink_Expecter) EventsInTimeframe(ctx interface{}, start interface{}, end interface{}) *Sink_EventsInTimeframe_Call
- func (_e *Sink_Expecter) GetCalendarID() *Sink_GetCalendarID_Call
- func (_e *Sink_Expecter) Name() *Sink_Name_Call
- func (_e *Sink_Expecter) UpdateEvent(ctx interface{}, e interface{}) *Sink_UpdateEvent_Call
- type Sink_GetCalendarID_Call
- type Sink_Name_Call
- type Sink_UpdateEvent_Call
- type Source
- type Source_EventsInTimeframe_Call
- func (_c *Source_EventsInTimeframe_Call) Return(_a0 []models.Event, _a1 error) *Source_EventsInTimeframe_Call
- func (_c *Source_EventsInTimeframe_Call) Run(run func(ctx context.Context, start time.Time, end time.Time)) *Source_EventsInTimeframe_Call
- func (_c *Source_EventsInTimeframe_Call) RunAndReturn(run func(context.Context, time.Time, time.Time) ([]models.Event, error)) *Source_EventsInTimeframe_Call
- type Source_Expecter
- type Source_GetCalendarID_Call
- type Source_Name_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sink ¶
Sink is an autogenerated mock type for the Sink type
func NewSink ¶
NewSink creates a new instance of Sink. 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 (*Sink) CreateEvent ¶
CreateEvent provides a mock function with given fields: ctx, e
func (*Sink) DeleteEvent ¶
DeleteEvent provides a mock function with given fields: ctx, e
func (*Sink) EXPECT ¶ added in v0.8.1
func (_m *Sink) EXPECT() *Sink_Expecter
func (*Sink) EventsInTimeframe ¶
func (_m *Sink) EventsInTimeframe(ctx context.Context, start time.Time, end time.Time) ([]models.Event, error)
EventsInTimeframe provides a mock function with given fields: ctx, start, end
func (*Sink) GetCalendarID ¶ added in v0.8.0
GetCalendarID provides a mock function with given fields:
type Sink_CreateEvent_Call ¶ added in v0.8.1
Sink_CreateEvent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateEvent'
func (*Sink_CreateEvent_Call) Return ¶ added in v0.8.1
func (_c *Sink_CreateEvent_Call) Return(_a0 error) *Sink_CreateEvent_Call
func (*Sink_CreateEvent_Call) Run ¶ added in v0.8.1
func (_c *Sink_CreateEvent_Call) Run(run func(ctx context.Context, e models.Event)) *Sink_CreateEvent_Call
func (*Sink_CreateEvent_Call) RunAndReturn ¶ added in v0.8.1
func (_c *Sink_CreateEvent_Call) RunAndReturn(run func(context.Context, models.Event) error) *Sink_CreateEvent_Call
type Sink_DeleteEvent_Call ¶ added in v0.8.1
Sink_DeleteEvent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteEvent'
func (*Sink_DeleteEvent_Call) Return ¶ added in v0.8.1
func (_c *Sink_DeleteEvent_Call) Return(_a0 error) *Sink_DeleteEvent_Call
func (*Sink_DeleteEvent_Call) Run ¶ added in v0.8.1
func (_c *Sink_DeleteEvent_Call) Run(run func(ctx context.Context, e models.Event)) *Sink_DeleteEvent_Call
func (*Sink_DeleteEvent_Call) RunAndReturn ¶ added in v0.8.1
func (_c *Sink_DeleteEvent_Call) RunAndReturn(run func(context.Context, models.Event) error) *Sink_DeleteEvent_Call
type Sink_EventsInTimeframe_Call ¶ added in v0.8.1
Sink_EventsInTimeframe_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EventsInTimeframe'
func (*Sink_EventsInTimeframe_Call) Return ¶ added in v0.8.1
func (_c *Sink_EventsInTimeframe_Call) Return(_a0 []models.Event, _a1 error) *Sink_EventsInTimeframe_Call
func (*Sink_EventsInTimeframe_Call) Run ¶ added in v0.8.1
func (_c *Sink_EventsInTimeframe_Call) Run(run func(ctx context.Context, start time.Time, end time.Time)) *Sink_EventsInTimeframe_Call
func (*Sink_EventsInTimeframe_Call) RunAndReturn ¶ added in v0.8.1
type Sink_Expecter ¶ added in v0.8.1
type Sink_Expecter struct {
// contains filtered or unexported fields
}
func (*Sink_Expecter) CreateEvent ¶ added in v0.8.1
func (_e *Sink_Expecter) CreateEvent(ctx interface{}, e interface{}) *Sink_CreateEvent_Call
CreateEvent is a helper method to define mock.On call
- ctx context.Context
- e models.Event
func (*Sink_Expecter) DeleteEvent ¶ added in v0.8.1
func (_e *Sink_Expecter) DeleteEvent(ctx interface{}, e interface{}) *Sink_DeleteEvent_Call
DeleteEvent is a helper method to define mock.On call
- ctx context.Context
- e models.Event
func (*Sink_Expecter) EventsInTimeframe ¶ added in v0.8.1
func (_e *Sink_Expecter) EventsInTimeframe(ctx interface{}, start interface{}, end interface{}) *Sink_EventsInTimeframe_Call
EventsInTimeframe is a helper method to define mock.On call
- ctx context.Context
- start time.Time
- end time.Time
func (*Sink_Expecter) GetCalendarID ¶ added in v0.8.1
func (_e *Sink_Expecter) GetCalendarID() *Sink_GetCalendarID_Call
GetCalendarID is a helper method to define mock.On call
func (*Sink_Expecter) Name ¶ added in v0.8.1
func (_e *Sink_Expecter) Name() *Sink_Name_Call
Name is a helper method to define mock.On call
func (*Sink_Expecter) UpdateEvent ¶ added in v0.8.1
func (_e *Sink_Expecter) UpdateEvent(ctx interface{}, e interface{}) *Sink_UpdateEvent_Call
UpdateEvent is a helper method to define mock.On call
- ctx context.Context
- e models.Event
type Sink_GetCalendarID_Call ¶ added in v0.8.1
Sink_GetCalendarID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCalendarID'
func (*Sink_GetCalendarID_Call) Return ¶ added in v0.8.1
func (_c *Sink_GetCalendarID_Call) Return(_a0 string) *Sink_GetCalendarID_Call
func (*Sink_GetCalendarID_Call) Run ¶ added in v0.8.1
func (_c *Sink_GetCalendarID_Call) Run(run func()) *Sink_GetCalendarID_Call
func (*Sink_GetCalendarID_Call) RunAndReturn ¶ added in v0.8.1
func (_c *Sink_GetCalendarID_Call) RunAndReturn(run func() string) *Sink_GetCalendarID_Call
type Sink_Name_Call ¶ added in v0.8.1
Sink_Name_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Name'
func (*Sink_Name_Call) Return ¶ added in v0.8.1
func (_c *Sink_Name_Call) Return(_a0 string) *Sink_Name_Call
func (*Sink_Name_Call) Run ¶ added in v0.8.1
func (_c *Sink_Name_Call) Run(run func()) *Sink_Name_Call
func (*Sink_Name_Call) RunAndReturn ¶ added in v0.8.1
func (_c *Sink_Name_Call) RunAndReturn(run func() string) *Sink_Name_Call
type Sink_UpdateEvent_Call ¶ added in v0.8.1
Sink_UpdateEvent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateEvent'
func (*Sink_UpdateEvent_Call) Return ¶ added in v0.8.1
func (_c *Sink_UpdateEvent_Call) Return(_a0 error) *Sink_UpdateEvent_Call
func (*Sink_UpdateEvent_Call) Run ¶ added in v0.8.1
func (_c *Sink_UpdateEvent_Call) Run(run func(ctx context.Context, e models.Event)) *Sink_UpdateEvent_Call
func (*Sink_UpdateEvent_Call) RunAndReturn ¶ added in v0.8.1
func (_c *Sink_UpdateEvent_Call) RunAndReturn(run func(context.Context, models.Event) error) *Sink_UpdateEvent_Call
type Source ¶
Source is an autogenerated mock type for the Source type
func NewSource ¶
NewSource creates a new instance of Source. 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 (*Source) EXPECT ¶ added in v0.8.1
func (_m *Source) EXPECT() *Source_Expecter
func (*Source) EventsInTimeframe ¶
func (_m *Source) EventsInTimeframe(ctx context.Context, start time.Time, end time.Time) ([]models.Event, error)
EventsInTimeframe provides a mock function with given fields: ctx, start, end
func (*Source) GetCalendarID ¶ added in v0.8.0
GetCalendarID provides a mock function with given fields:
type Source_EventsInTimeframe_Call ¶ added in v0.8.1
Source_EventsInTimeframe_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EventsInTimeframe'
func (*Source_EventsInTimeframe_Call) Return ¶ added in v0.8.1
func (_c *Source_EventsInTimeframe_Call) Return(_a0 []models.Event, _a1 error) *Source_EventsInTimeframe_Call
func (*Source_EventsInTimeframe_Call) Run ¶ added in v0.8.1
func (_c *Source_EventsInTimeframe_Call) Run(run func(ctx context.Context, start time.Time, end time.Time)) *Source_EventsInTimeframe_Call
func (*Source_EventsInTimeframe_Call) RunAndReturn ¶ added in v0.8.1
type Source_Expecter ¶ added in v0.8.1
type Source_Expecter struct {
// contains filtered or unexported fields
}
func (*Source_Expecter) EventsInTimeframe ¶ added in v0.8.1
func (_e *Source_Expecter) EventsInTimeframe(ctx interface{}, start interface{}, end interface{}) *Source_EventsInTimeframe_Call
EventsInTimeframe is a helper method to define mock.On call
- ctx context.Context
- start time.Time
- end time.Time
func (*Source_Expecter) GetCalendarID ¶ added in v0.8.1
func (_e *Source_Expecter) GetCalendarID() *Source_GetCalendarID_Call
GetCalendarID is a helper method to define mock.On call
func (*Source_Expecter) Name ¶ added in v0.8.1
func (_e *Source_Expecter) Name() *Source_Name_Call
Name is a helper method to define mock.On call
type Source_GetCalendarID_Call ¶ added in v0.8.1
Source_GetCalendarID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCalendarID'
func (*Source_GetCalendarID_Call) Return ¶ added in v0.8.1
func (_c *Source_GetCalendarID_Call) Return(_a0 string) *Source_GetCalendarID_Call
func (*Source_GetCalendarID_Call) Run ¶ added in v0.8.1
func (_c *Source_GetCalendarID_Call) Run(run func()) *Source_GetCalendarID_Call
func (*Source_GetCalendarID_Call) RunAndReturn ¶ added in v0.8.1
func (_c *Source_GetCalendarID_Call) RunAndReturn(run func() string) *Source_GetCalendarID_Call
type Source_Name_Call ¶ added in v0.8.1
Source_Name_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Name'
func (*Source_Name_Call) Return ¶ added in v0.8.1
func (_c *Source_Name_Call) Return(_a0 string) *Source_Name_Call
func (*Source_Name_Call) Run ¶ added in v0.8.1
func (_c *Source_Name_Call) Run(run func()) *Source_Name_Call
func (*Source_Name_Call) RunAndReturn ¶ added in v0.8.1
func (_c *Source_Name_Call) RunAndReturn(run func() string) *Source_Name_Call