slack

package
v0.0.0-...-540b436 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultMaxRetries = 3
	DefaultMaxBackoff = 30 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RetryConfig

type RetryConfig struct {
	MaxRetries int
	MaxBackoff time.Duration
}

type SlackAdapter

type SlackAdapter struct {
	// contains filtered or unexported fields
}

func NewSlackAdapter

func NewSlackAdapter() *SlackAdapter

func (*SlackAdapter) Connect

func (a *SlackAdapter) Connect(ctx context.Context, botToken, appToken string) error

func (*SlackAdapter) Disconnect

func (a *SlackAdapter) Disconnect() error

func (*SlackAdapter) GetChannelMembers

func (a *SlackAdapter) GetChannelMembers(ctx context.Context, channelID string) ([]user.User, error)

func (*SlackAdapter) GetChannels

func (a *SlackAdapter) GetChannels(ctx context.Context) ([]channel.Channel, error)

func (*SlackAdapter) GetMessages

func (a *SlackAdapter) GetMessages(ctx context.Context, channelID string, limit int, cursor string) ([]message.Message, string, error)

func (*SlackAdapter) GetThreadReplies

func (a *SlackAdapter) GetThreadReplies(ctx context.Context, channelID, threadTS string) (message.Message, []message.Message, error)

func (*SlackAdapter) PostMessage

func (a *SlackAdapter) PostMessage(ctx context.Context, channelID, text string) error

func (*SlackAdapter) PostThreadReply

func (a *SlackAdapter) PostThreadReply(ctx context.Context, channelID, threadTS, text string) error

func (*SlackAdapter) SubscribeEvents

func (a *SlackAdapter) SubscribeEvents(ctx context.Context) (<-chan port.SlackEvent, error)

Jump to

Keyboard shortcuts

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