Documentation
¶
Index ¶
Constants ¶
View Source
const ( SendSlackChannelComponent = "send_slack_channel" PortResponse = "response" PortError = "error" PortRequest = "request" )
Variables ¶
View Source
var SenderDefaultSettings = ChannelSenderSettings{}
Functions ¶
This section is empty.
Types ¶
type ChannelSender ¶
type ChannelSender struct {
// contains filtered or unexported fields
}
func (*ChannelSender) GetInfo ¶
func (t *ChannelSender) GetInfo() module.ComponentInfo
func (*ChannelSender) Instance ¶
func (t *ChannelSender) Instance() module.Component
func (*ChannelSender) Ports ¶
func (t *ChannelSender) Ports() []module.Port
type ChannelSenderSettings ¶
type Message ¶
type Message struct {
ChannelID string `json:"channelID" required:"true" minLength:"1" title:"ChannelID" description:""`
SlackToken string `json:"slackToken" required:"true" minLength:"1" title:"Slack token" description:"Bot User OAuth Token"`
Text string `json:"text" required:"true" minLength:"1" title:"Message text" format:"textarea"`
}
type SendChannelRequest ¶
type SendChannelRequest struct {
Context SendSlackChannelContext `json:"context" configurable:"true" title:"Context"`
Message Message `json:"slack_message" required:"true" title:"Slack Message"`
}
type SendSlackChannelContext ¶
type SendSlackChannelContext any
type SendSlackChannelError ¶
type SendSlackChannelError struct {
Request SendChannelRequest `json:"request"`
Error string `json:"error"`
}
type SendSlackChannelSuccess ¶
type SendSlackChannelSuccess struct {
Request SendChannelRequest `json:"request"`
Sent Message `json:"sent"`
}
Click to show internal directories.
Click to hide internal directories.