Versions in this module Expand all Collapse all v1 v1.0.0 Jan 30, 2026 Changes in this version + func ConvertFile(f slack.File) domain.SlackAttachment + type Client struct + func NewClient(config *ClientConfig) (*Client, error) + func (c *Client) DeleteMessage(ctx context.Context, channelID, messageTS string) error + func (c *Client) DownloadFile(ctx context.Context, downloadURL string) (io.ReadCloser, error) + func (c *Client) GetChannel(ctx context.Context, channelID string) (*domain.SlackChannel, error) + func (c *Client) GetCurrentUser(ctx context.Context) (*domain.SlackUser, error) + func (c *Client) GetFileInfo(ctx context.Context, fileID string) (*domain.SlackAttachment, error) + func (c *Client) GetMessages(ctx context.Context, params *domain.SlackMessageQueryParams) (*domain.SlackMessageListResponse, error) + func (c *Client) GetThreadReplies(ctx context.Context, channelID, threadTS string, limit int) ([]domain.SlackMessage, error) + func (c *Client) GetUser(ctx context.Context, userID string) (*domain.SlackUser, error) + func (c *Client) GetUsersForMessages(ctx context.Context, messages []domain.SlackMessage) error + func (c *Client) ListChannels(ctx context.Context, params *domain.SlackChannelQueryParams) (*domain.SlackChannelListResponse, error) + func (c *Client) ListFiles(ctx context.Context, params *domain.SlackFileQueryParams) (*domain.SlackFileListResponse, error) + func (c *Client) ListMyChannels(ctx context.Context, params *domain.SlackChannelQueryParams) (*domain.SlackChannelListResponse, error) + func (c *Client) ListUsers(ctx context.Context, limit int, cursor string) (*domain.SlackUserListResponse, error) + func (c *Client) ResolveChannelByName(ctx context.Context, name string) (*domain.SlackChannel, error) + func (c *Client) SearchMessages(ctx context.Context, query string, limit int) ([]domain.SlackMessage, error) + func (c *Client) SendMessage(ctx context.Context, req *domain.SlackSendMessageRequest) (*domain.SlackMessage, error) + func (c *Client) TestAuth(ctx context.Context) (*domain.SlackAuth, error) + func (c *Client) UpdateMessage(ctx context.Context, channelID, messageTS, newText string) (*domain.SlackMessage, error) + type ClientConfig struct + Debug bool + RateBurst int + RateLimit rate.Limit + UserCacheTTL time.Duration + UserToken string + func DefaultConfig() *ClientConfig + type MockClient struct + DeleteMessageFunc func(ctx context.Context, channelID, messageTS string) error + DownloadFileFunc func(ctx context.Context, downloadURL string) (io.ReadCloser, error) + GetChannelFunc func(ctx context.Context, channelID string) (*domain.SlackChannel, error) + GetCurrentUserFunc func(ctx context.Context) (*domain.SlackUser, error) + GetFileInfoFunc func(ctx context.Context, fileID string) (*domain.SlackAttachment, error) + GetMessagesFunc func(ctx context.Context, params *domain.SlackMessageQueryParams) (*domain.SlackMessageListResponse, error) + GetThreadRepliesFunc func(ctx context.Context, channelID, threadTS string, limit int) ([]domain.SlackMessage, error) + GetUserFunc func(ctx context.Context, userID string) (*domain.SlackUser, error) + ListChannelsFunc func(ctx context.Context, params *domain.SlackChannelQueryParams) (*domain.SlackChannelListResponse, error) + ListFilesFunc func(ctx context.Context, params *domain.SlackFileQueryParams) (*domain.SlackFileListResponse, error) + ListMyChannelsFunc func(ctx context.Context, params *domain.SlackChannelQueryParams) (*domain.SlackChannelListResponse, error) + ListUsersFunc func(ctx context.Context, limit int, cursor string) (*domain.SlackUserListResponse, error) + SearchMessagesFunc func(ctx context.Context, query string, limit int) ([]domain.SlackMessage, error) + SendMessageFunc func(ctx context.Context, req *domain.SlackSendMessageRequest) (*domain.SlackMessage, error) + TestAuthFunc func(ctx context.Context) (*domain.SlackAuth, error) + UpdateMessageFunc func(ctx context.Context, channelID, messageTS, newText string) (*domain.SlackMessage, error) + func NewMockClient() *MockClient + func (m *MockClient) DeleteMessage(ctx context.Context, channelID, messageTS string) error + func (m *MockClient) DownloadFile(ctx context.Context, downloadURL string) (io.ReadCloser, error) + func (m *MockClient) GetChannel(ctx context.Context, channelID string) (*domain.SlackChannel, error) + func (m *MockClient) GetCurrentUser(ctx context.Context) (*domain.SlackUser, error) + func (m *MockClient) GetFileInfo(ctx context.Context, fileID string) (*domain.SlackAttachment, error) + func (m *MockClient) GetMessages(ctx context.Context, params *domain.SlackMessageQueryParams) (*domain.SlackMessageListResponse, error) + func (m *MockClient) GetThreadReplies(ctx context.Context, channelID, threadTS string, limit int) ([]domain.SlackMessage, error) + func (m *MockClient) GetUser(ctx context.Context, userID string) (*domain.SlackUser, error) + func (m *MockClient) ListChannels(ctx context.Context, params *domain.SlackChannelQueryParams) (*domain.SlackChannelListResponse, error) + func (m *MockClient) ListFiles(ctx context.Context, params *domain.SlackFileQueryParams) (*domain.SlackFileListResponse, error) + func (m *MockClient) ListMyChannels(ctx context.Context, params *domain.SlackChannelQueryParams) (*domain.SlackChannelListResponse, error) + func (m *MockClient) ListUsers(ctx context.Context, limit int, cursor string) (*domain.SlackUserListResponse, error) + func (m *MockClient) SearchMessages(ctx context.Context, query string, limit int) ([]domain.SlackMessage, error) + func (m *MockClient) SendMessage(ctx context.Context, req *domain.SlackSendMessageRequest) (*domain.SlackMessage, error) + func (m *MockClient) TestAuth(ctx context.Context) (*domain.SlackAuth, error) + func (m *MockClient) UpdateMessage(ctx context.Context, channelID, messageTS, newText string) (*domain.SlackMessage, error)