Documentation ¶
Index ¶
- type Core
- func (p *Core) AddInbound(config *core.InboundHandlerConfig) error
- func (p *Core) AddInboundLimiter(tag string, nodeInfo *panel.NodeInfo, users []panel.UserInfo) error
- func (p *Core) AddOutbound(config *core.OutboundHandlerConfig) error
- func (p *Core) AddUserSpeedLimit(tag string, user *panel.UserInfo, speedLimit int, expire int64) error
- func (p *Core) AddUsers(users []*protocol.User, tag string) error
- func (p *Core) ClearOnlineIp(tag string)
- func (p *Core) Close()
- func (p *Core) DeleteInboundLimiter(tag string) error
- func (p *Core) GetInboundLimiter(tag string) (*dispatcher.InboundInfo, error)
- func (p *Core) GetUserManager(tag string) (proxy.UserManager, error)
- func (p *Core) GetUserTraffic(email string, reset bool) (up int64, down int64)
- func (p *Core) ListOnlineIp(tag string) ([]dispatcher.UserIpList, error)
- func (p *Core) RemoveInbound(tag string) error
- func (p *Core) RemoveOutbound(tag string) error
- func (p *Core) RemoveUsers(users []string, tag string) error
- func (p *Core) Restart(v2bXConfig *conf.Conf) error
- func (p *Core) Start() error
- func (p *Core) UpdateInboundLimiter(tag string, added []panel.UserInfo, deleted []panel.UserInfo) error
- func (p *Core) UpdateOnlineIp(tag string, ips []dispatcher.UserIpList)
- func (p *Core) UpdateRule(tag string, newRuleList []panel.DestinationRule) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Core ¶
Core Structure
func (*Core) AddInbound ¶
func (p *Core) AddInbound(config *core.InboundHandlerConfig) error
func (*Core) AddInboundLimiter ¶
func (*Core) AddOutbound ¶
func (p *Core) AddOutbound(config *core.OutboundHandlerConfig) error
func (*Core) AddUserSpeedLimit ¶ added in v1.0.0
func (*Core) ClearOnlineIp ¶ added in v0.0.6
func (*Core) DeleteInboundLimiter ¶
func (*Core) GetInboundLimiter ¶
func (p *Core) GetInboundLimiter(tag string) (*dispatcher.InboundInfo, error)
func (*Core) GetUserManager ¶
func (p *Core) GetUserManager(tag string) (proxy.UserManager, error)
func (*Core) GetUserTraffic ¶
func (*Core) ListOnlineIp ¶ added in v0.0.6
func (p *Core) ListOnlineIp(tag string) ([]dispatcher.UserIpList, error)
func (*Core) RemoveInbound ¶
func (*Core) RemoveOutbound ¶
func (*Core) UpdateInboundLimiter ¶
func (*Core) UpdateOnlineIp ¶ added in v0.0.6
func (p *Core) UpdateOnlineIp(tag string, ips []dispatcher.UserIpList)
func (*Core) UpdateRule ¶
func (p *Core) UpdateRule(tag string, newRuleList []panel.DestinationRule) error
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
|
|
Click to show internal directories.
Click to hide internal directories.