Add v2ray stats api

This commit is contained in:
世界
2022-09-26 19:37:06 +08:00
parent d967847370
commit 0ea767a809
32 changed files with 1408 additions and 64 deletions

View File

@@ -2,4 +2,5 @@ package option
type ExperimentalOptions struct {
ClashAPI *ClashAPIOptions `json:"clash_api,omitempty"`
V2RayAPI *V2RayAPIOptions `json:"v2ray_api,omitempty"`
}

13
option/v2ray.go Normal file
View File

@@ -0,0 +1,13 @@
package option
type V2RayAPIOptions struct {
Listen string `json:"listen,omitempty"`
Stats *V2RayStatsServiceOptions `json:"stats,omitempty"`
}
type V2RayStatsServiceOptions struct {
Enabled bool `json:"enabled,omitempty"`
DirectIO bool `json:"direct_io,omitempty"`
Inbounds []string `json:"inbounds,omitempty"`
Outbounds []string `json:"outbounds,omitempty"`
}