Documentation
¶
Index ¶
- func New(cfg *config.Config, cred bridge.Credentials, eventChan chan *bridge.Event, ...) (bridge.Bridger, error)
- type Slack
- func (s *Slack) AddReaction(ctx context.Context, msgID, emoji string) error
- func (s *Slack) BridgeConfig() *config.BridgeConfig
- func (s *Slack) Config() any
- func (s *Slack) Connected() bool
- func (s *Slack) CreateChannel(ctx context.Context, channelName string, channelType string) (*bridge.ChannelInfo, error)
- func (s *Slack) FormatterConfig() *config.FormatterConfig
- func (s *Slack) GetChannel(ctx context.Context, channelID string) (*bridge.ChannelInfo, error)
- func (s *Slack) GetChannelCount() int
- func (s *Slack) GetChannelID(ctx context.Context, name, teamID string) string
- func (s *Slack) GetChannelName(ctx context.Context, channelID string) string
- func (s *Slack) GetChannelUsers(ctx context.Context, channelID string) ([]*bridge.UserInfo, error)
- func (s *Slack) GetChannels() []*bridge.ChannelInfo
- func (s *Slack) GetDMChannelName(userID1 string, userID2 string) string
- func (s *Slack) GetDMOtherUserID(channelName, myUserID string) (string, bool)
- func (s *Slack) GetDMUser(ctx context.Context, channelName string) *bridge.UserInfo
- func (s *Slack) GetDMUserIDs(channelName string) (string, string, bool)
- func (s *Slack) GetFilesInfo(ctx context.Context, fileIDs []string) []*bridge.File
- func (s *Slack) GetLastSentMsgs() []string
- func (s *Slack) GetLastViewedAt(ctx context.Context, channelID string) int64
- func (s *Slack) GetMe() *bridge.UserInfo
- func (s *Slack) GetPostSizeLimit() int
- func (s *Slack) GetPostThread(ctx context.Context, channelID string) []*bridge.Event
- func (s *Slack) GetPosts(ctx context.Context, channelID string, limit int) []*bridge.Event
- func (s *Slack) GetPostsSince(ctx context.Context, channelID string, since int64) []*bridge.Event
- func (s *Slack) GetReplayEvents(ctx context.Context, channelID string, since int64) []*bridge.Event
- func (s *Slack) GetTeamName(ctx context.Context, teamID string) string
- func (s *Slack) GetUser(ctx context.Context, userID string) *bridge.UserInfo
- func (s *Slack) GetUserByUsername(ctx context.Context, username string) *bridge.UserInfo
- func (s *Slack) GetUserChannels(ctx context.Context, userID string) ([]string, error)
- func (s *Slack) GetUserCount() int
- func (s *Slack) GetUsers() []*bridge.UserInfo
- func (s *Slack) Invite(ctx context.Context, channelID, username string) error
- func (s *Slack) IsChannelMember(channelID string) bool
- func (s *Slack) IsDMChannelName(channelName string) bool
- func (s *Slack) IsOnline(status string) bool
- func (s *Slack) Join(ctx context.Context, channelName string) (string, string, error)
- func (s *Slack) Kick(ctx context.Context, channelID, username string) error
- func (s *Slack) List(ctx context.Context) (map[string]string, error)
- func (s *Slack) Logout(ctx context.Context) error
- func (s *Slack) ModifyPost(ctx context.Context, channelID, text string) error
- func (s *Slack) MsgChannel(ctx context.Context, channelID, text string) (string, error)
- func (s *Slack) MsgChannelThread(ctx context.Context, username, parentID, text string) (string, error)
- func (s *Slack) MsgUser(ctx context.Context, username, text string) (string, error)
- func (s *Slack) MsgUserThread(ctx context.Context, username, parentID, text string) (string, error)
- func (s *Slack) Nick(ctx context.Context, name string) error
- func (s *Slack) Part(ctx context.Context, channelID string) error
- func (s *Slack) Ping(ctx context.Context, proto ...string) error
- func (s *Slack) Protocol() string
- func (s *Slack) RemoveReaction(ctx context.Context, msgID, emoji string) error
- func (s *Slack) SearchPosts(ctx context.Context, search string) []*bridge.Event
- func (s *Slack) SearchUsers(ctx context.Context, query string) ([]*bridge.UserInfo, error)
- func (s *Slack) SendTyping(ctx context.Context, channelName string)
- func (s *Slack) SetStatus(ctx context.Context, status string) error
- func (s *Slack) SetTopic(ctx context.Context, channelID, text string) error
- func (s *Slack) StatusUser(ctx context.Context, name string) (string, error)
- func (s *Slack) StatusUsers(ctx context.Context) (map[string]string, error)
- func (s *Slack) Topic(ctx context.Context, channelID string) string
- func (s *Slack) UpdateChannels(ctx context.Context) error
- func (s *Slack) UpdateLastViewed(ctx context.Context, channelID string)
- func (s *Slack) UpdateLastViewedUser(ctx context.Context, userID string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Slack ¶
func (*Slack) AddReaction ¶ added in v0.23.0
func (*Slack) BridgeConfig ¶ added in v0.31.0
func (s *Slack) BridgeConfig() *config.BridgeConfig
func (*Slack) CreateChannel ¶ added in v0.32.0
func (*Slack) FormatterConfig ¶ added in v0.31.0
func (s *Slack) FormatterConfig() *config.FormatterConfig
func (*Slack) GetChannel ¶
func (*Slack) GetChannelCount ¶ added in v0.32.0
func (*Slack) GetChannelID ¶
func (*Slack) GetChannelName ¶
func (*Slack) GetChannelUsers ¶
func (*Slack) GetChannels ¶
func (s *Slack) GetChannels() []*bridge.ChannelInfo
func (*Slack) GetDMChannelName ¶ added in v0.32.0
func (*Slack) GetDMOtherUserID ¶ added in v0.32.0
func (*Slack) GetDMUserIDs ¶ added in v0.32.0
func (*Slack) GetFilesInfo ¶ added in v0.32.0
func (*Slack) GetLastSentMsgs ¶ added in v0.27.1
func (*Slack) GetLastViewedAt ¶
func (*Slack) GetPostSizeLimit ¶ added in v0.33.0
func (*Slack) GetPostThread ¶ added in v0.28.0
func (*Slack) GetPostsSince ¶
func (*Slack) GetReplayEvents ¶ added in v0.32.0
func (*Slack) GetUserByUsername ¶
func (*Slack) GetUserChannels ¶ added in v0.32.0
func (*Slack) GetUserCount ¶ added in v0.32.0
func (*Slack) IsChannelMember ¶ added in v0.31.0
func (*Slack) IsDMChannelName ¶ added in v0.32.0
func (*Slack) ModifyPost ¶
func (*Slack) MsgChannel ¶
func (*Slack) MsgChannelThread ¶
func (*Slack) MsgUserThread ¶
func (*Slack) RemoveReaction ¶ added in v0.23.0
func (*Slack) SearchPosts ¶
func (*Slack) SearchUsers ¶
func (*Slack) SendTyping ¶ added in v0.33.0
func (*Slack) StatusUser ¶
func (*Slack) StatusUsers ¶
func (*Slack) UpdateLastViewed ¶
Click to show internal directories.
Click to hide internal directories.