mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-01-23 10:28:13 -05:00
17 lines
364 B
Go
17 lines
364 B
Go
|
// 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
|
||
|
}
|