Documentation ¶
Index ¶
- Variables
- type AuthServer
- type Connector
- func (*Connector) Async() bool
- func (connector *Connector) Attach(event *bot.Event, fileName string, file io.Reader, title string) error
- func (connector *Connector) Client() *slack.Client
- func (connector *Connector) Connect() error
- func (connector *Connector) GetChannelInfo(channelId string) (*bot.ChannelInfo, error)
- func (connector *Connector) GetPermalink(event *bot.Event) string
- func (connector *Connector) Idle() chan bool
- func (connector *Connector) Listen() error
- func (connector *Connector) ReceivedEvent() chan *bot.Event
- func (connector *Connector) Send(event *bot.Event, username string, text string) error
- func (connector *Connector) SendPrivate(event *bot.Event, userId, text string) error
- func (connector *Connector) SendWithConfirm(event *bot.Event, username, text string) (string, error)
- func (connector *Connector) WithIndicate(channel string) context.CancelFunc
- type Event
- type Message
- type Ping
- type ReactionAdded
- type Token
- type Typing
- type UserTyping
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type AuthServer ¶
type AuthServer struct { TeamID string TokenChan chan *Token // contains filtered or unexported fields }
func NewAuthServer ¶
func NewAuthServer(clientId, secret string, scopes []string, redirectUrl string, teamId string) *AuthServer
func (*AuthServer) Start ¶
func (authServer *AuthServer) Start(addr string) error
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
func NewConnector ¶
func (*Connector) GetChannelInfo ¶
func (connector *Connector) GetChannelInfo(channelId string) (*bot.ChannelInfo, error)
func (*Connector) ReceivedEvent ¶
func (*Connector) SendPrivate ¶
func (*Connector) SendWithConfirm ¶
func (*Connector) WithIndicate ¶
func (connector *Connector) WithIndicate(channel string) context.CancelFunc
type ReactionAdded ¶
type ReactionAdded struct { Type string `json:"type"` User string `json:"user"` Reaction string `json:"reaction"` ItemUser string `json:"item_user"` Item struct { Type string `json:"type"` Channel string `json:"channel"` Ts string `json:"ts"` File string `json:"file"` FileComment string `json:"file_comment"` } `json:"item"` EventTs string `json:"event_ts"` }
type UserTyping ¶
Click to show internal directories.
Click to hide internal directories.