mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-07-27 17:19:58 +00:00
AUTH-2588 add DoH to service mode
This commit is contained in:
17
overwatch/manager.go
Normal file
17
overwatch/manager.go
Normal file
@@ -0,0 +1,17 @@
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user