Documentation ¶
Index ¶
- func NewService(token string) domain.SlackService
- type ClientService
- func (c *ClientService) GetConversationsForUser(parameters *slack.GetConversationsForUserParameters) ([]slack.Channel, string, error)
- func (c *ClientService) GetJoinedChannelsList() ([]slack.Channel, error)
- func (c *ClientService) GetUserByEmail(email string) (*slack.User, error)
- func (c *ClientService) SendMessage(channel string, option ...slack.MsgOption) (string, string, string, error)
- type MockSlackCaller
- func (_m *MockSlackCaller) GetConversationsForUser(params *slack.GetConversationsForUserParameters) ([]slack.Channel, string, error)
- func (_m *MockSlackCaller) GetUserByEmail(_a0 string) (*slack.User, error)
- func (_m *MockSlackCaller) SendMessage(_a0 string, _a1 ...slack.MsgOption) (string, string, string, error)
- type SlackCaller
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService(token string) domain.SlackService
Types ¶
type ClientService ¶
type ClientService struct {
SlackClient SlackCaller
}
func (*ClientService) GetConversationsForUser ¶
func (c *ClientService) GetConversationsForUser(parameters *slack.GetConversationsForUserParameters) ([]slack.Channel, string, error)
func (*ClientService) GetJoinedChannelsList ¶
func (c *ClientService) GetJoinedChannelsList() ([]slack.Channel, error)
func (*ClientService) GetUserByEmail ¶
func (c *ClientService) GetUserByEmail(email string) (*slack.User, error)
func (*ClientService) SendMessage ¶
type MockSlackCaller ¶
MockSlackCaller is an autogenerated mock type for the SlackCaller type
func (*MockSlackCaller) GetConversationsForUser ¶
func (_m *MockSlackCaller) GetConversationsForUser(params *slack.GetConversationsForUserParameters) ([]slack.Channel, string, error)
GetConversationsForUser provides a mock function with given fields: params
func (*MockSlackCaller) GetUserByEmail ¶
func (_m *MockSlackCaller) GetUserByEmail(_a0 string) (*slack.User, error)
GetUserByEmail provides a mock function with given fields: _a0
func (*MockSlackCaller) SendMessage ¶
func (_m *MockSlackCaller) SendMessage(_a0 string, _a1 ...slack.MsgOption) (string, string, string, error)
SendMessage provides a mock function with given fields: _a0, _a1
Click to show internal directories.
Click to hide internal directories.