mihomo/listener/config/vmess.go

24 lines
296 B
Go
Raw Normal View History

package config
import (
"encoding/json"
)
type VmessUser struct {
Username string
UUID string
AlterID int
}
type VmessServer struct {
Enable bool
Listen string
Users []VmessUser
2023-10-07 16:45:15 +08:00
WsPath string
}
func (t VmessServer) String() string {
b, _ := json.Marshal(t)
return string(b)
}