xray

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2024 License: MPL-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(c *conf.CoreConfig) (vCore.Core, error)

Types

type DNSConfig

type DNSConfig struct {
	Servers []interface{} `json:"servers"`
	Tag     string        `json:"tag"`
}

type Xray

type Xray struct {
	Server *core.Instance
	// contains filtered or unexported fields
}

Xray Structure

func (*Xray) AddNode

func (c *Xray) AddNode(tag string, info *panel.NodeInfo, config *conf.Options) error

func (*Xray) AddUsers

func (c *Xray) AddUsers(p *vCore.AddUsersParams) (added int, err error)

func (*Xray) Close

func (c *Xray) Close() error

Close the core

func (*Xray) DelNode

func (c *Xray) DelNode(tag string) error

func (*Xray) DelUsers

func (c *Xray) DelUsers(users []panel.UserInfo, tag string) error

func (*Xray) GetUserManager

func (c *Xray) GetUserManager(tag string) (proxy.UserManager, error)

func (*Xray) GetUserTraffic

func (c *Xray) GetUserTraffic(tag, uuid string, reset bool) (up int64, down int64)

func (*Xray) Protocols

func (c *Xray) Protocols() []string

func (*Xray) Start

func (c *Xray) Start() error

Start the Xray

func (*Xray) Type

func (c *Xray) Type() string

Directories

Path Synopsis
app
Package app contains the third-party app used to replace the default app in xray-core
Package app contains the third-party app used to replace the default app in xray-core
distro
all

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL