slack

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService

func NewService() *service

Types

type Channel

type Channel struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type JoinedChannelFetchErr

type JoinedChannelFetchErr struct {
	Err error
}

func (*JoinedChannelFetchErr) Error

func (n *JoinedChannelFetchErr) Error() string

type MockSlackCaller

type MockSlackCaller struct {
	mock.Mock
}

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 SlackMessage struct {
	ReceiverName string       `json:"receiver_name"`
	ReceiverType string       `json:"receiver_type"`
	Message      string       `json:"message"`
	Blocks       slack.Blocks `json:"block"`
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL