Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelClient ¶ added in v1.0.0
type ChannelClient interface {
// Send sends messages to channels
Send(ctx context.Context, teamRef string, messages map[string]string, dryRun, ignoreError bool) []sender.ChannelSendResult
// SendReply sends a reply to a specific message in a channel
SendReply(ctx context.Context, teamRef, channelRef, messageID, content string) sender.ChannelSendResult
// Create creates channels based on the provided request data
Create(ctx context.Context, teamRef string, request map[string]creator.ChannelData, ensureMembersInChannel, ensureMembersInTeam, dryRun bool) []creator.CreateResult
// GetMessages retrieves messages from all channels within the specified time range
GetMessages(ctx context.Context, timeRange coreretriever.TimeRange, teamRef, channelRef *string) ([]*retriever.ChannelMessageWithContext, error)
}
ChannelClient provides all channel-related operations
func NewChannelClient ¶ added in v1.0.0
func NewChannelClient(channelsService channels.Service, teamsService teams.Service) ChannelClient
NewChannelClient creates a new channels client
Click to show internal directories.
Click to hide internal directories.