channels

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: MIT Imports: 7 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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