Documentation
¶
Index ¶
- func GetCustomConfig(serverconfig *panel.ServerConfigResponse) (*dns.Config, []*core.OutboundHandlerConfig, *router.Config, error)
- func ValidateServerConfig(serverconfig *panel.ServerConfigResponse) error
- type AddUsersParams
- type UserMap
- type XrayCore
- func (v *XrayCore) AddNode(tag string, info *panel.NodeInfo) error
- func (v *XrayCore) AddNodeConfig(config *xray.InboundHandlerConfig) error
- func (v *XrayCore) AddUsers(p *AddUsersParams) (added int, err error)
- func (v *XrayCore) Close() error
- func (v *XrayCore) DelNode(tag string) error
- func (vc *XrayCore) DelUsers(users []panel.UserInfo, tag string, _ *panel.NodeInfo) error
- func (v *XrayCore) GetUserManager(tag string) (proxy.UserManager, error)
- func (vc *XrayCore) GetUserTrafficSlice(tag string, mintraffic int) ([]panel.UserTraffic, error)
- func (c *XrayCore) ServerConfigMonitor(ctx context.Context) (err error)
- func (v *XrayCore) Start(serverconfig *panel.ServerConfigResponse) error
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 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 (*XrayCore) AddNodeConfig ¶ added in v1.1.13
func (v *XrayCore) AddNodeConfig(config *xray.InboundHandlerConfig) error
func (*XrayCore) GetUserManager ¶
func (v *XrayCore) GetUserManager(tag string) (proxy.UserManager, error)
func (*XrayCore) GetUserTrafficSlice ¶
func (*XrayCore) ServerConfigMonitor ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
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
|
|
|
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
|
|
Click to show internal directories.
Click to hide internal directories.