core

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: MPL-2.0 Imports: 39 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)

func ValidateServerConfig added in v1.1.4

func ValidateServerConfig(serverconfig *panel.ServerConfigResponse) 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.ServerClient
	ReloadCh chan struct{}

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

func New

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

func (*XrayCore) AddNode

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

func (*XrayCore) AddNodeConfig added in v1.1.13

func (v *XrayCore) AddNodeConfig(config *xray.InboundHandlerConfig) 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(ctx context.Context) (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
protocol
nowhere
Package nowhere adapts the NW3 portal to Xray's public inbound and dispatcher interfaces.
Package nowhere adapts the NW3 portal to Xray's public inbound and dispatcher interfaces.
transport

Jump to

Keyboard shortcuts

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