definitions.go

v0.2.0
Doc Versions Source
1
package steward
2
3
import (
4
	"context"
5
)
6
7
type Initer interface {
8
	Init(ctx context.Context) error
9
}
10
11
type Starter interface {
12
	Start(ctx context.Context) error
13
}
14
15
type GracefulStopper interface {
16
	GracefulStop(ctx context.Context) error
17
}
18
19
type Stopper interface {
20
	Stop(ctx context.Context) error
21
}
22
23
type Destroyer interface {
24
	Destroy(ctx context.Context) error
25
}
26
27
type HealthChecker interface {
28
	HealthCheck(ctx context.Context) error
29
}
30

Source Files