core

package
v1.1.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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) AddInbound

func (p *Core) AddInbound(config *core.InboundHandlerConfig) error

func (*Core) AddOutbound

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

func (*Core) AddUsers

func (p *Core) AddUsers(users []*protocol.User, tag string) error

func (*Core) Close

func (p *Core) Close()

Close the core

func (*Core) GetUserManager

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

func (*Core) GetUserTraffic

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

func (*Core) RemoveInbound

func (p *Core) RemoveInbound(tag string) error

func (*Core) RemoveOutbound

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

func (*Core) RemoveUsers

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

func (*Core) Restart added in v1.0.0

func (p *Core) Restart(v2bXConfig *conf.Conf) error

func (*Core) Start

func (p *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