health.go 423 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
package sealed_sector_health

// Health represents the healthiness of a sector managed by a
// sector builder.
type Health int

const (
	Unknown              Health = iota
	Ok                          // everything is fine
	ErrorInvalidChecksum        // sector exists, but checksum is invalid
	ErrorInvalidLength          // sector exists, but length is incorrect
	ErrorMissing                // sector no longer exists
)