Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecutorFactory ¶
type ExecutorFactory interface {
NewDefault(cfg execute.NewDefaultInput) execute.Executor
}
ExecutorFactory facilitates creation of execute.Executor instances.
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider provides automations for events.
func NewProvider ¶
func NewProvider(log logrus.FieldLogger, cfg config.Actions, executorFactory ExecutorFactory) *Provider
NewProvider returns new instance of Provider.
func (*Provider) ExecuteEventAction ¶
func (p *Provider) ExecuteEventAction(ctx context.Context, action event.Action) interactive.GenericMessage
ExecuteEventAction executes action for given event. WARNING: The result interactive.Message contains BotNamePlaceholder, which should be replaced before sending the message.
Click to show internal directories.
Click to hide internal directories.