summaryrefslogtreecommitdiff
path: root/plugins/status/interface.go
blob: 9d5a13afc58faff89e8a064d82e8b63e1b8b1dce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package status

// Status consists of status code from the service
type Status struct {
	Code int
}

// Checker interface used to get latest status from plugin
type Checker interface {
	Status() Status
}

// Readiness interface used to get readiness status from the plugin
// that means, that worker poll inside the plugin has 1+ plugins which are ready to work
// at the particular moment
type Readiness interface {
	Ready() Status
}