Documentation
¶
Index ¶
- func NewService() *service
- type Channel
- type JoinedChannelFetchErr
- 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 MsgSendErr
- type NoChannelFoundErr
- type SlackMessage
- type SlackNotifierErr
- type SlackRepository
- type UserLookupByEmailErr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService() *service
Types ¶
type JoinedChannelFetchErr ¶
type JoinedChannelFetchErr struct {
Err error
}
func (*JoinedChannelFetchErr) Error ¶
func (n *JoinedChannelFetchErr) Error() string
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
type MsgSendErr ¶
type MsgSendErr struct {
Err error
}
func (*MsgSendErr) Error ¶
func (n *MsgSendErr) Error() string
type NoChannelFoundErr ¶
type NoChannelFoundErr struct {
Err error
}
func (*NoChannelFoundErr) Error ¶
func (n *NoChannelFoundErr) Error() string
type SlackMessage ¶
type SlackNotifierErr ¶
type SlackNotifierErr struct {
Err error
}
func (*SlackNotifierErr) Error ¶
func (n *SlackNotifierErr) Error() string
type SlackRepository ¶
type SlackRepository interface {
GetWorkspaceChannels(string) ([]Channel, error)
Notify(*domain.SlackMessage) (*domain.SlackMessageSendResponse, error)
}
type UserLookupByEmailErr ¶
type UserLookupByEmailErr struct {
Err error
}
func (*UserLookupByEmailErr) Error ¶
func (n *UserLookupByEmailErr) Error() string
Click to show internal directories.
Click to hide internal directories.