Documentation
¶
Index ¶
- type AppMentionMetadata
- type AuthTestResponse
- type ChannelInfo
- type ChannelMetadata
- type ChatPostMessageRequest
- type ChatPostMessageResponse
- type Client
- type ConversationsInfoResponse
- type ConversationsListResponse
- type EventPayload
- type Metadata
- type OnAppMention
- func (t *OnAppMention) Actions() []core.Action
- func (t *OnAppMention) Color() string
- func (t *OnAppMention) Configuration() []configuration.Field
- func (t *OnAppMention) Description() string
- func (t *OnAppMention) Documentation() string
- func (t *OnAppMention) ExampleData() map[string]any
- func (t *OnAppMention) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)
- func (t *OnAppMention) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (t *OnAppMention) Icon() string
- func (t *OnAppMention) Label() string
- func (t *OnAppMention) Name() string
- func (t *OnAppMention) OnIntegrationMessage(ctx core.IntegrationMessageContext) error
- func (t *OnAppMention) Setup(ctx core.TriggerContext) error
- type OnAppMentionConfiguration
- type SendTextMessage
- func (c *SendTextMessage) Actions() []core.Action
- func (c *SendTextMessage) Cancel(ctx core.ExecutionContext) error
- func (c *SendTextMessage) Color() string
- func (c *SendTextMessage) Configuration() []configuration.Field
- func (c *SendTextMessage) Description() string
- func (c *SendTextMessage) Documentation() string
- func (c *SendTextMessage) ExampleOutput() map[string]any
- func (c *SendTextMessage) Execute(ctx core.ExecutionContext) error
- func (c *SendTextMessage) HandleAction(ctx core.ActionContext) error
- func (c *SendTextMessage) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (c *SendTextMessage) Icon() string
- func (c *SendTextMessage) Label() string
- func (c *SendTextMessage) Name() string
- func (c *SendTextMessage) OutputChannels(configuration any) []core.OutputChannel
- func (c *SendTextMessage) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *SendTextMessage) Setup(ctx core.SetupContext) error
- type SendTextMessageConfiguration
- type SendTextMessageMetadata
- type Slack
- func (s *Slack) CleanupWebhook(ctx core.CleanupWebhookContext) error
- func (s *Slack) CompareWebhookConfig(a, b any) (bool, error)
- func (s *Slack) Components() []core.Component
- func (s *Slack) Configuration() []configuration.Field
- func (s *Slack) Description() string
- func (s *Slack) HandleRequest(ctx core.HTTPRequestContext)
- func (s *Slack) Icon() string
- func (s *Slack) Instructions() string
- func (s *Slack) Label() string
- func (s *Slack) ListResources(resourceType string, ctx core.ListResourcesContext) ([]core.IntegrationResource, error)
- func (s *Slack) Name() string
- func (s *Slack) SetupWebhook(ctx core.SetupWebhookContext) (any, error)
- func (s *Slack) Sync(ctx core.SyncContext) error
- func (s *Slack) Triggers() []core.Trigger
- type SubscriptionConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppMentionMetadata ¶
type AppMentionMetadata struct {
Channel *ChannelMetadata `json:"channel,omitempty" mapstructure:"channel,omitempty"`
AppSubscriptionID *string `json:"appSubscriptionID,omitempty" mapstructure:"appSubscriptionID,omitempty"`
}
type AuthTestResponse ¶
type ChannelInfo ¶
type ChannelMetadata ¶
type ChatPostMessageRequest ¶
type ChatPostMessageResponse ¶
type Client ¶
type Client struct {
BotToken string
}
func (*Client) AuthTest ¶
func (c *Client) AuthTest() (*AuthTestResponse, error)
func (*Client) GetChannelInfo ¶
func (c *Client) GetChannelInfo(channel string) (*ChannelInfo, error)
func (*Client) ListChannels ¶
func (c *Client) ListChannels() ([]ChannelInfo, error)
func (*Client) PostMessage ¶
func (c *Client) PostMessage(req ChatPostMessageRequest) (*ChatPostMessageResponse, error)
type ConversationsInfoResponse ¶
type ConversationsInfoResponse struct {
OK bool `json:"ok"`
Error string `json:"error,omitempty"`
Channel *ChannelInfo `json:"channel,omitempty"`
}
type ConversationsListResponse ¶
type ConversationsListResponse struct {
OK bool `json:"ok"`
Error string `json:"error,omitempty"`
Channels []ChannelInfo `json:"channels,omitempty"`
}
type EventPayload ¶
type Metadata ¶
type Metadata struct {
URL string `mapstructure:"url" json:"url"`
TeamID string `mapstructure:"team_id" json:"team_id"`
Team string `mapstructure:"team" json:"team"`
UserID string `mapstructure:"user_id" json:"user_id"`
User string `mapstructure:"user" json:"user"`
BotID string `mapstructure:"bot_id" json:"bot_id"`
}
type OnAppMention ¶
type OnAppMention struct{}
func (*OnAppMention) Actions ¶
func (t *OnAppMention) Actions() []core.Action
func (*OnAppMention) Color ¶
func (t *OnAppMention) Color() string
func (*OnAppMention) Configuration ¶
func (t *OnAppMention) Configuration() []configuration.Field
func (*OnAppMention) Description ¶
func (t *OnAppMention) Description() string
func (*OnAppMention) Documentation ¶
func (t *OnAppMention) Documentation() string
func (*OnAppMention) ExampleData ¶
func (t *OnAppMention) ExampleData() map[string]any
func (*OnAppMention) HandleAction ¶
func (t *OnAppMention) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)
func (*OnAppMention) HandleWebhook ¶
func (t *OnAppMention) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*OnAppMention) Icon ¶
func (t *OnAppMention) Icon() string
func (*OnAppMention) Label ¶
func (t *OnAppMention) Label() string
func (*OnAppMention) Name ¶
func (t *OnAppMention) Name() string
func (*OnAppMention) OnIntegrationMessage ¶
func (t *OnAppMention) OnIntegrationMessage(ctx core.IntegrationMessageContext) error
func (*OnAppMention) Setup ¶
func (t *OnAppMention) Setup(ctx core.TriggerContext) error
type OnAppMentionConfiguration ¶
type OnAppMentionConfiguration struct {
Channel string `json:"channel" mapstructure:"channel"`
}
type SendTextMessage ¶
type SendTextMessage struct{}
func (*SendTextMessage) Actions ¶
func (c *SendTextMessage) Actions() []core.Action
func (*SendTextMessage) Cancel ¶
func (c *SendTextMessage) Cancel(ctx core.ExecutionContext) error
func (*SendTextMessage) Color ¶
func (c *SendTextMessage) Color() string
func (*SendTextMessage) Configuration ¶
func (c *SendTextMessage) Configuration() []configuration.Field
func (*SendTextMessage) Description ¶
func (c *SendTextMessage) Description() string
func (*SendTextMessage) Documentation ¶
func (c *SendTextMessage) Documentation() string
func (*SendTextMessage) ExampleOutput ¶
func (c *SendTextMessage) ExampleOutput() map[string]any
func (*SendTextMessage) Execute ¶
func (c *SendTextMessage) Execute(ctx core.ExecutionContext) error
func (*SendTextMessage) HandleAction ¶
func (c *SendTextMessage) HandleAction(ctx core.ActionContext) error
func (*SendTextMessage) HandleWebhook ¶
func (c *SendTextMessage) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*SendTextMessage) Icon ¶
func (c *SendTextMessage) Icon() string
func (*SendTextMessage) Label ¶
func (c *SendTextMessage) Label() string
func (*SendTextMessage) Name ¶
func (c *SendTextMessage) Name() string
func (*SendTextMessage) OutputChannels ¶
func (c *SendTextMessage) OutputChannels(configuration any) []core.OutputChannel
func (*SendTextMessage) ProcessQueueItem ¶
func (c *SendTextMessage) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*SendTextMessage) Setup ¶
func (c *SendTextMessage) Setup(ctx core.SetupContext) error
type SendTextMessageMetadata ¶
type SendTextMessageMetadata struct {
Channel *ChannelMetadata `json:"channel" mapstructure:"channel"`
}
type Slack ¶
type Slack struct{}
func (*Slack) CleanupWebhook ¶
func (s *Slack) CleanupWebhook(ctx core.CleanupWebhookContext) error
func (*Slack) Components ¶
func (*Slack) Configuration ¶
func (s *Slack) Configuration() []configuration.Field
func (*Slack) Description ¶
func (*Slack) HandleRequest ¶
func (s *Slack) HandleRequest(ctx core.HTTPRequestContext)
func (*Slack) Instructions ¶
func (*Slack) ListResources ¶
func (s *Slack) ListResources(resourceType string, ctx core.ListResourcesContext) ([]core.IntegrationResource, error)
func (*Slack) SetupWebhook ¶
func (s *Slack) SetupWebhook(ctx core.SetupWebhookContext) (any, error)
type SubscriptionConfiguration ¶
type SubscriptionConfiguration struct {
EventTypes []string `json:"eventTypes"`
}
Click to show internal directories.
Click to hide internal directories.