mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-04 04:30:08 +00:00
update
This commit is contained in:
16
service/service.go
Normal file
16
service/service.go
Normal file
@@ -0,0 +1,16 @@
|
||||
// Package service contains all the services used by XrayR
|
||||
// To implement an service, one needs to implement the interface below.
|
||||
package service
|
||||
|
||||
// Service is the interface of all the services running in the panel
|
||||
type Service interface {
|
||||
Start() error
|
||||
Close() error
|
||||
Restart
|
||||
}
|
||||
|
||||
// Restart the service
|
||||
type Restart interface {
|
||||
Start() error
|
||||
Close() error
|
||||
}
|
||||
Reference in New Issue
Block a user