queue

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRunningCommand

func AddRunningCommand(event slack.MessageEvent, fallbackCommand string) chan bool

AddRunningCommand registers a long running command, e.g. a running Jenkins job or watching a pull request it's doing following magic: - when using "trigger job XXX" and "then reply done" it will execute the "reply done" when the running command was finished - when the server got restarted, the fallbackCommand gets executed todo add a kill chan to kill long running command via command todo improve locking

func IsBlocked

func IsBlocked(event slack.MessageEvent) bool

IsBlocked checks if there is a blocking command registered for this user/channel

func NewListCommand

func NewListCommand(slackClient client.SlackClient) bot.Command

NewListCommand prints the list of all queued commands (blocking commands like running Jenkins jobs)

func NewQueueCommand

func NewQueueCommand(slackClient client.SlackClient, log *logrus.Logger) bot.Command

NewQueueCommand is able to execute a command when another blocking process is done e.g. have a running jenkins job and using "then reply done!" to get a information later

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL