mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-12-28 13:25:52 +08:00
23 lines
281 B
Go
23 lines
281 B
Go
|
package config
|
||
|
|
||
|
import (
|
||
|
"encoding/json"
|
||
|
)
|
||
|
|
||
|
type VmessUser struct {
|
||
|
Username string
|
||
|
UUID string
|
||
|
AlterID int
|
||
|
}
|
||
|
|
||
|
type VmessServer struct {
|
||
|
Enable bool
|
||
|
Listen string
|
||
|
Users []VmessUser
|
||
|
}
|
||
|
|
||
|
func (t VmessServer) String() string {
|
||
|
b, _ := json.Marshal(t)
|
||
|
return string(b)
|
||
|
}
|