Documentation
¶
Index ¶
- type AutoLoadRawMessage
- type ExpendNodeOptions
- type Xray
- func (c *Xray) AddNode(p *core.AddNodeParams) (err error)
- func (c *Xray) AddUsers(p *core.AddUsersParams) (err error)
- func (c *Xray) Close() (err error)
- func (c *Xray) CustomMethod(method string, args any, reply *any) error
- func (c *Xray) DelNode(name string) (err error)
- func (c *Xray) DelUsers(p *core.DelUsersParams) (err error)
- func (c *Xray) GetUserTraffic(p *core.GetUserTrafficParams) *core.GetUserTrafficResponse
- func (c *Xray) Protocols() []string
- func (c *Xray) ResetUserTraffic(p *core.ResetUserTrafficParams) (err error)
- func (c *Xray) Start(dataPath string, config []byte) (err error)
- func (c *Xray) Type() string
- type XrayConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoLoadRawMessage ¶
type AutoLoadRawMessage json.RawMessage
func (*AutoLoadRawMessage) UnmarshalJSON ¶
func (j *AutoLoadRawMessage) UnmarshalJSON(data []byte) error
type ExpendNodeOptions ¶
type ExpendNodeOptions struct {
SendIp string `mapstructure:"SendIp"`
RawOutbound json.RawMessage `mapstructure:"RawOutbound"`
RawInbound json.RawMessage `mapstructure:"RawInbound"`
}
type Xray ¶
Xray Structure
func (*Xray) GetUserTraffic ¶
func (c *Xray) GetUserTraffic(p *core.GetUserTrafficParams) *core.GetUserTrafficResponse
func (*Xray) ResetUserTraffic ¶
func (c *Xray) ResetUserTraffic(p *core.ResetUserTrafficParams) (err error)
type XrayConfig ¶
type XrayConfig struct {
AssetPath string `json:"AssetPath"`
Log AutoLoadRawMessage `json:"Log"`
Dns AutoLoadRawMessage `json:"Dns"`
Inbound AutoLoadRawMessage `json:"Inbound"`
Outbound AutoLoadRawMessage `json:"Outbound"`
Route AutoLoadRawMessage `json:"Route"`
Policy AutoLoadRawMessage `json:"Policy"`
}
func NewXrayConfig ¶
func NewXrayConfig() *XrayConfig
Click to show internal directories.
Click to hide internal directories.