Documentation ¶
Index ¶
- type Slack
- func (s *Slack) Channels() ([]*transport.Channel, error)
- func (s *Slack) GetConversation(userID string) (string, error)
- func (s *Slack) GetUser(user string) (*transport.User, error)
- func (s *Slack) GetUsers() ([]*transport.User, error)
- func (s *Slack) SendEvent(ev *transport.Event) error
- func (s *Slack) SendMessage(dest, msg string) error
- func (s *Slack) TunnelEvents(ctx context.Context, evCh chan *transport.Event, errCh chan error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Slack ¶
type Slack struct {
// contains filtered or unexported fields
}
Slack provides io access to the Slack network.
func New ¶
New returns a new instance of Slack. cfg.IgnoreUsers must be set with the bot name or ID otherwise it will potentially read it's own messages.
func (*Slack) GetConversation ¶ added in v0.0.2
GetConversation gets a private conversation for the given user ID.
func (*Slack) SendMessage ¶
SendMessage sends a message using the default format.
Click to show internal directories.
Click to hide internal directories.