core

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2025 License: MPL-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCustomConfig

func GetCustomConfig(serverconfig *panel.ServerConfigResponse) (*dns.Config, []*core.OutboundHandlerConfig, *router.Config, error)

Types

type AddUsersParams

type AddUsersParams struct {
	Tag   string
	Users []panel.UserInfo
	*panel.NodeInfo
}

type UserMap

type UserMap struct {
	// contains filtered or unexported fields
}

type XrayCore

type XrayCore struct {
	Config   *conf.Conf
	Client   *panel.ClientV2
	ReloadCh chan struct{}

	Server *core.Instance
	// contains filtered or unexported fields
}

func New

func New(config *conf.Conf, client *panel.ClientV2) *XrayCore

func (*XrayCore) AddNode

func (v *XrayCore) AddNode(tag string, info *panel.NodeInfo) error

func (*XrayCore) AddUsers

func (v *XrayCore) AddUsers(p *AddUsersParams) (added int, err error)

func (*XrayCore) Close

func (v *XrayCore) Close() error

func (*XrayCore) DelNode

func (v *XrayCore) DelNode(tag string) error

func (*XrayCore) DelUsers

func (vc *XrayCore) DelUsers(users []panel.UserInfo, tag string, _ *panel.NodeInfo) error

func (*XrayCore) GetUserManager

func (v *XrayCore) GetUserManager(tag string) (proxy.UserManager, error)

func (*XrayCore) GetUserTrafficSlice

func (vc *XrayCore) GetUserTrafficSlice(tag string, mintraffic int) ([]panel.UserTraffic, error)

func (*XrayCore) ServerConfigMonitor

func (c *XrayCore) ServerConfigMonitor() (err error)

func (*XrayCore) Start

func (v *XrayCore) Start(serverconfig *panel.ServerConfigResponse) error

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