Documentation
¶
Index ¶
- type GoSlackCaller
- func (_m *GoSlackCaller) EXPECT() *GoSlackCaller_Expecter
- func (_m *GoSlackCaller) GetConversationsForUserContext(ctx context.Context, params *slack.GetConversationsForUserParameters) ([]slack.Channel, string, error)
- func (_m *GoSlackCaller) GetUserByEmailContext(ctx context.Context, email string) (*slack.User, error)
- func (_m *GoSlackCaller) SendMessageContext(ctx context.Context, channel string, options ...slack.MsgOption) (string, string, string, error)
- type GoSlackCaller_Expecter
- func (_e *GoSlackCaller_Expecter) GetConversationsForUserContext(ctx interface{}, params interface{}) *GoSlackCaller_GetConversationsForUserContext_Call
- func (_e *GoSlackCaller_Expecter) GetUserByEmailContext(ctx interface{}, email interface{}) *GoSlackCaller_GetUserByEmailContext_Call
- func (_e *GoSlackCaller_Expecter) SendMessageContext(ctx interface{}, channel interface{}, options ...interface{}) *GoSlackCaller_SendMessageContext_Call
- type GoSlackCaller_GetConversationsForUserContext_Call
- func (_c *GoSlackCaller_GetConversationsForUserContext_Call) Return(channels []slack.Channel, nextCursor string, err error) *GoSlackCaller_GetConversationsForUserContext_Call
- func (_c *GoSlackCaller_GetConversationsForUserContext_Call) Run(run func(ctx context.Context, params *slack.GetConversationsForUserParameters)) *GoSlackCaller_GetConversationsForUserContext_Call
- type GoSlackCaller_GetUserByEmailContext_Call
- type GoSlackCaller_SendMessageContext_Call
- func (_c *GoSlackCaller_SendMessageContext_Call) Return(_a0 string, _a1 string, _a2 string, _a3 error) *GoSlackCaller_SendMessageContext_Call
- func (_c *GoSlackCaller_SendMessageContext_Call) Run(run func(ctx context.Context, channel string, options ...slack.MsgOption)) *GoSlackCaller_SendMessageContext_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoSlackCaller ¶
GoSlackCaller is an autogenerated mock type for the GoSlackCaller type
func NewGoSlackCaller ¶
func NewGoSlackCaller(t mockConstructorTestingTNewGoSlackCaller) *GoSlackCaller
NewGoSlackCaller creates a new instance of GoSlackCaller. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*GoSlackCaller) EXPECT ¶
func (_m *GoSlackCaller) EXPECT() *GoSlackCaller_Expecter
func (*GoSlackCaller) GetConversationsForUserContext ¶
func (_m *GoSlackCaller) GetConversationsForUserContext(ctx context.Context, params *slack.GetConversationsForUserParameters) ([]slack.Channel, string, error)
GetConversationsForUserContext provides a mock function with given fields: ctx, params
func (*GoSlackCaller) GetUserByEmailContext ¶
func (_m *GoSlackCaller) GetUserByEmailContext(ctx context.Context, email string) (*slack.User, error)
GetUserByEmailContext provides a mock function with given fields: ctx, email
type GoSlackCaller_Expecter ¶
type GoSlackCaller_Expecter struct {
// contains filtered or unexported fields
}
func (*GoSlackCaller_Expecter) GetConversationsForUserContext ¶
func (_e *GoSlackCaller_Expecter) GetConversationsForUserContext(ctx interface{}, params interface{}) *GoSlackCaller_GetConversationsForUserContext_Call
GetConversationsForUserContext is a helper method to define mock.On call
- ctx context.Context
- params *slack.GetConversationsForUserParameters
func (*GoSlackCaller_Expecter) GetUserByEmailContext ¶
func (_e *GoSlackCaller_Expecter) GetUserByEmailContext(ctx interface{}, email interface{}) *GoSlackCaller_GetUserByEmailContext_Call
GetUserByEmailContext is a helper method to define mock.On call
- ctx context.Context
- email string
func (*GoSlackCaller_Expecter) SendMessageContext ¶
func (_e *GoSlackCaller_Expecter) SendMessageContext(ctx interface{}, channel interface{}, options ...interface{}) *GoSlackCaller_SendMessageContext_Call
SendMessageContext is a helper method to define mock.On call
- ctx context.Context
- channel string
- options ...slack.MsgOption
type GoSlackCaller_GetConversationsForUserContext_Call ¶
GoSlackCaller_GetConversationsForUserContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetConversationsForUserContext'
func (*GoSlackCaller_GetConversationsForUserContext_Call) Return ¶
func (_c *GoSlackCaller_GetConversationsForUserContext_Call) Return(channels []slack.Channel, nextCursor string, err error) *GoSlackCaller_GetConversationsForUserContext_Call
func (*GoSlackCaller_GetConversationsForUserContext_Call) Run ¶
func (_c *GoSlackCaller_GetConversationsForUserContext_Call) Run(run func(ctx context.Context, params *slack.GetConversationsForUserParameters)) *GoSlackCaller_GetConversationsForUserContext_Call
type GoSlackCaller_GetUserByEmailContext_Call ¶
GoSlackCaller_GetUserByEmailContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserByEmailContext'
func (*GoSlackCaller_GetUserByEmailContext_Call) Return ¶
func (_c *GoSlackCaller_GetUserByEmailContext_Call) Return(_a0 *slack.User, _a1 error) *GoSlackCaller_GetUserByEmailContext_Call
func (*GoSlackCaller_GetUserByEmailContext_Call) Run ¶
func (_c *GoSlackCaller_GetUserByEmailContext_Call) Run(run func(ctx context.Context, email string)) *GoSlackCaller_GetUserByEmailContext_Call
type GoSlackCaller_SendMessageContext_Call ¶
GoSlackCaller_SendMessageContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendMessageContext'
func (*GoSlackCaller_SendMessageContext_Call) Return ¶
func (_c *GoSlackCaller_SendMessageContext_Call) Return(_a0 string, _a1 string, _a2 string, _a3 error) *GoSlackCaller_SendMessageContext_Call
func (*GoSlackCaller_SendMessageContext_Call) Run ¶
func (_c *GoSlackCaller_SendMessageContext_Call) Run(run func(ctx context.Context, channel string, options ...slack.MsgOption)) *GoSlackCaller_SendMessageContext_Call