Documentation ¶
Index ¶
- func New(v *viper.Viper, cred bridge.Credentials, eventChan chan *bridge.Event, ...) (bridge.Bridger, error)
- type Slack
- func (s *Slack) AddReaction(msgID, emoji string) error
- func (s *Slack) Connected() bool
- func (s *Slack) GetChannel(channelID string) (*bridge.ChannelInfo, error)
- func (s *Slack) GetChannelID(name, teamID string) string
- func (s *Slack) GetChannelName(channelID string) string
- func (s *Slack) GetChannelUsers(channelID string) ([]*bridge.UserInfo, error)
- func (s *Slack) GetChannels() []*bridge.ChannelInfo
- func (s *Slack) GetFileLinks(fileIDs []string) []string
- func (s *Slack) GetLastViewedAt(channelID string) int64
- func (s *Slack) GetMe() *bridge.UserInfo
- func (s *Slack) GetPosts(channelID string, limit int) interface{}
- func (s *Slack) GetPostsSince(channelID string, since int64) interface{}
- func (s *Slack) GetTeamName(teamID string) string
- func (s *Slack) GetUser(userID string) *bridge.UserInfo
- func (s *Slack) GetUserByUsername(username string) *bridge.UserInfo
- func (s *Slack) GetUsers() []*bridge.UserInfo
- func (s *Slack) Invite(channelID, username string) error
- func (s *Slack) Join(channelName string) (string, string, error)
- func (s *Slack) Kick(channelID, username string) error
- func (s *Slack) List() (map[string]string, error)
- func (s *Slack) Logout() error
- func (s *Slack) ModifyPost(channelID, text string) error
- func (s *Slack) MsgChannel(channelID, text string) (string, error)
- func (s *Slack) MsgChannelThread(username, parentID, text string) (string, error)
- func (s *Slack) MsgUser(username, text string) (string, error)
- func (s *Slack) MsgUserThread(username, parentID, text string) (string, error)
- func (s *Slack) Nick(name string) error
- func (s *Slack) Part(channelID string) error
- func (s *Slack) Protocol() string
- func (s *Slack) RemoveReaction(msgID, emoji string) error
- func (s *Slack) SearchPosts(search string) interface{}
- func (s *Slack) SearchUsers(query string) ([]*bridge.UserInfo, error)
- func (s *Slack) SetStatus(status string) error
- func (s *Slack) SetTopic(channelID, text string) error
- func (s *Slack) StatusUser(name string) (string, error)
- func (s *Slack) StatusUsers() (map[string]string, error)
- func (s *Slack) Topic(channelID string) string
- func (s *Slack) UpdateChannels() error
- func (s *Slack) UpdateLastViewed(channelID string)
- func (s *Slack) UpdateLastViewedUser(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) GetChannel ¶
func (s *Slack) GetChannel(channelID string) (*bridge.ChannelInfo, error)
func (*Slack) GetChannelID ¶
func (*Slack) GetChannelName ¶
func (*Slack) GetChannelUsers ¶
func (*Slack) GetChannels ¶
func (s *Slack) GetChannels() []*bridge.ChannelInfo
func (*Slack) GetFileLinks ¶
func (*Slack) GetLastViewedAt ¶
func (*Slack) GetPostsSince ¶
func (*Slack) GetTeamName ¶
func (*Slack) GetUserByUsername ¶
func (*Slack) ModifyPost ¶
func (*Slack) MsgChannelThread ¶
func (*Slack) MsgUserThread ¶
func (*Slack) RemoveReaction ¶ added in v0.23.0
func (*Slack) SearchPosts ¶
func (*Slack) UpdateChannels ¶
func (*Slack) UpdateLastViewed ¶
func (*Slack) UpdateLastViewedUser ¶
Click to show internal directories.
Click to hide internal directories.