mirror of
https://github.com/ncarlier/webhookd.git
synced 2025-04-05 20:23:44 +00:00
27 lines
478 B
Go
27 lines
478 B
Go
package hook
|
|
|
|
// Status is the status of a hook
|
|
type Status int
|
|
|
|
const (
|
|
// Idle means that the hook is not yet started
|
|
Idle Status = iota
|
|
// Running means that the hook is running
|
|
Running
|
|
// Success means that the hook over
|
|
Success
|
|
// Error means that the hook is over but in error
|
|
Error
|
|
)
|
|
|
|
// Request is a hook request
|
|
type Request struct {
|
|
Name string
|
|
Script string
|
|
Method string
|
|
Payload string
|
|
Args []string
|
|
Timeout int
|
|
OutputDir string
|
|
}
|