cloudflared-mirror/overwatch/manager.go

18 lines
338 B
Go
Raw Normal View History

2020-05-01 15:30:50 +00:00
package overwatch
// Service is the required functions for an object to be managed by the overwatch Manager
type Service interface {
Name() string
Type() string
Hash() string
Shutdown()
Run() error
}
// Manager is based type to manage running services
type Manager interface {
Add(Service)
Remove(string)
Services() []Service
}