github.com/metacubex/mihomo@v1.18.5/listener/config/vmess.go (about) 1 package config 2 3 import ( 4 "github.com/metacubex/mihomo/listener/sing" 5 6 "encoding/json" 7 ) 8 9 type VmessUser struct { 10 Username string 11 UUID string 12 AlterID int 13 } 14 15 type VmessServer struct { 16 Enable bool 17 Listen string 18 Users []VmessUser 19 WsPath string 20 Certificate string 21 PrivateKey string 22 MuxOption sing.MuxOption `yaml:"mux-option" json:"mux-option,omitempty"` 23 } 24 25 func (t VmessServer) String() string { 26 b, _ := json.Marshal(t) 27 return string(b) 28 }