Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct { Client Client SocketClient SocketClient SocketClientEvents chan socketmode.Event }
Channel contains a Slack Channel
func (*Channel) ReceiveMessage ¶
ReceiveMessage for Slack
func (*Channel) ReceiveMessages ¶
ReceiveMessages uses event queues to receive messages. Starts a long running process
func (*Channel) SendMessage ¶
SendMessage to Slack with the bots response
type Client ¶
type Client interface {
PostMessage(channelID string, options ...slack.MsgOption) (string, string, error)
}
Client is the Slack client interface
type Config ¶
type Config struct { Token string `mapstructure:"token"` AppToken string `mapstructure:"app_token"` }
Config contains the Slack token
type ErrURLVerification ¶
type ErrURLVerification struct {
Challenge []byte
}
ErrURLVerification raised when an auth challenge is supposed to be performed
func (ErrURLVerification) Error ¶
func (e ErrURLVerification) Error() string
type MessageIn ¶
type MessageIn struct { Challenge string `json:"challenge"` Type string `json:"type"` Event slack.Msg `json:"event"` Token string `json:"token"` }
MessageIn models a Slack message and/or Slack endpoint challenge
type SocketClient ¶
type SocketClient interface { Ack(req socketmode.Request, payload ...interface{}) Run() error }
SocketClient is the Slack socketmode client interface
Click to show internal directories.
Click to hide internal directories.