1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-12 08:23:48 +02:00
woodpecker/model/event.go

20 lines
424 B
Go
Raw Normal View History

2016-09-28 03:30:28 +02:00
package model
2016-04-13 02:27:24 +02:00
// 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 {
2016-09-28 03:30:28 +02:00
Type EventType `json:"type"`
Repo Repo `json:"repo"`
Build Build `json:"build"`
2017-04-02 16:13:26 +02:00
Proc Proc `json:"proc"`
}