xray

package
v0.0.0-...-af9fb20 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MPL-2.0 Imports: 35 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 Core

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

Core Structure

func (*Core) AddNode

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

func (*Core) AddUsers

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

func (*Core) Close

func (c *Core) Close() error

Close the core

func (*Core) DelNode

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

func (*Core) DelUsers

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

func (*Core) GetUserManager

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

func (*Core) GetUserTraffic

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

func (*Core) Protocols

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

func (*Core) Start

func (c *Core) Start() error

Start the Core

func (*Core) Type

func (c *Core) Type() string

type DNSConfig

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

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