2022-12-05 10:12:53 +08:00
|
|
|
package config
|
|
|
|
|
|
|
|
import (
|
|
|
|
"encoding/json"
|
|
|
|
)
|
|
|
|
|
|
|
|
type VmessUser struct {
|
|
|
|
Username string
|
|
|
|
UUID string
|
|
|
|
AlterID int
|
|
|
|
}
|
|
|
|
|
|
|
|
type VmessServer struct {
|
2023-10-07 17:08:54 +08:00
|
|
|
Enable bool
|
|
|
|
Listen string
|
|
|
|
Users []VmessUser
|
|
|
|
WsPath string
|
|
|
|
Certificate string
|
|
|
|
PrivateKey string
|
2022-12-05 10:12:53 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (t VmessServer) String() string {
|
|
|
|
b, _ := json.Marshal(t)
|
|
|
|
return string(b)
|
|
|
|
}
|