core

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: MPL-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddUsersParams

type AddUsersParams struct {
	Tag      string
	Config   *conf.ControllerConfig
	UserInfo []panel.UserInfo
	NodeInfo *panel.NodeInfo
}

type Core

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

Core Structure

func New

func New(c *conf.Conf) *Core

func (*Core) AddNode

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

func (*Core) AddOutbound

func (c *Core) AddOutbound(config *core.OutboundHandlerConfig) error

func (*Core) AddUsers

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

func (*Core) Close

func (c *Core) Close()

Close the core

func (*Core) DelNode

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

func (*Core) GetUserManager

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

func (*Core) GetUserTraffic

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

func (*Core) RemoveOutbound

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

func (*Core) RemoveUsers

func (c *Core) RemoveUsers(users []string, tag string) error

func (*Core) Restart

func (c *Core) Restart(AikoServerConfig *conf.Conf) error

func (*Core) Start

func (c *Core) Start() error

Start the Core

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