mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-30 05:41:12 +00:00
19 lines
424 B
Go
19 lines
424 B
Go
package model
|
|
|
|
// EventType defines the possible types of build events.
|
|
type EventType string
|
|
|
|
const (
|
|
Enqueued EventType = "enqueued"
|
|
Started EventType = "started"
|
|
Finished EventType = "finished"
|
|
Cancelled EventType = "cancelled"
|
|
)
|
|
|
|
// Event represents a build event.
|
|
type Event struct {
|
|
Type EventType `json:"type"`
|
|
Repo Repo `json:"repo"`
|
|
Build Build `json:"build"`
|
|
Proc Proc `json:"proc"`
|
|
}
|