mirror of
https://github.com/alireza0/x-ui.git
synced 2026-03-14 05:23:09 +00:00
25 lines
714 B
Go
25 lines
714 B
Go
package xray
|
|
|
|
import (
|
|
"encoding/json"
|
|
"x-ui/util/json_util"
|
|
)
|
|
|
|
type Config struct {
|
|
LogConfig json.RawMessage `json:"log"`
|
|
RouterConfig json.RawMessage `json:"routing"`
|
|
DNSConfig json.RawMessage `json:"dns"`
|
|
InboundConfigs []InboundConfig `json:"inbounds"`
|
|
OutboundConfigs json.RawMessage `json:"outbounds"`
|
|
Transport json.RawMessage `json:"transport"`
|
|
Policy json.RawMessage `json:"policy"`
|
|
API json.RawMessage `json:"api"`
|
|
Stats json.RawMessage `json:"stats"`
|
|
Reverse json.RawMessage `json:"reverse"`
|
|
FakeDNS json.RawMessage `json:"fakeDns"`
|
|
}
|
|
|
|
func (c *Config) MarshalJSON() ([]byte, error) {
|
|
return json_util.MarshalJSON(c)
|
|
}
|