Documentation ¶
Index ¶
- type Core
- func (p *Core) AddInbound(config *core.InboundHandlerConfig) error
- func (p *Core) AddInboundLimiter(tag string, nodeInfo *api.NodeInfo, userList []api.UserInfo) error
- func (p *Core) AddOutbound(config *core.OutboundHandlerConfig) error
- func (p *Core) AddUsers(users []*protocol.User, tag string) error
- func (p *Core) ClearOnlineIps(tag string)
- func (p *Core) Close()
- func (p *Core) DeleteInboundLimiter(tag string) error
- func (p *Core) GetDetectResult(tag string) ([]api.DetectResult, error)
- func (p *Core) GetInboundLimiter(tag string) (*limiter.InboundInfo, error)
- func (p *Core) GetOnlineIps(tag string) ([]limiter.UserIp, error)
- func (p *Core) GetUserManager(tag string) (proxy.UserManager, error)
- func (p *Core) GetUserTraffic(email string) (up int64, down int64)
- 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) Start()
- func (p *Core) UpdateInboundLimiter(tag string, nodeInfo *api.NodeInfo, updatedUserList []api.UserInfo) error
- func (p *Core) UpdateOnlineIps(tag string, ips []limiter.UserIp)
- func (p *Core) UpdateProtocolRule(tag string, newRuleList []string) error
- func (p *Core) UpdateRule(tag string, newRuleList []api.DetectRule) 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) ClearOnlineIps ¶
func (*Core) DeleteInboundLimiter ¶
func (*Core) GetDetectResult ¶
func (p *Core) GetDetectResult(tag string) ([]api.DetectResult, error)
func (*Core) GetInboundLimiter ¶
func (p *Core) GetInboundLimiter(tag string) (*limiter.InboundInfo, error)
func (*Core) GetUserManager ¶
func (p *Core) GetUserManager(tag string) (proxy.UserManager, error)
func (*Core) RemoveInbound ¶
func (*Core) RemoveOutbound ¶
func (*Core) UpdateInboundLimiter ¶
func (*Core) UpdateProtocolRule ¶
func (*Core) UpdateRule ¶
func (p *Core) UpdateRule(tag string, newRuleList []api.DetectRule) 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 |
dispatcher
Package dispather implement the rate limiter and the onlie device counter
|
Package dispather implement the rate limiter and the onlie device counter |
distro
|
|
Click to show internal directories.
Click to hide internal directories.