mirror of
https://github.com/fumiama/terasu-cloudflared.git
synced 2026-06-08 12:00:36 +08: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