MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / RemoveUser

Method RemoveUser

internal/xray/manager.go:869–878  ·  view source on GitHub ↗

RemoveUser 从运行中的 Xray inbound 热删用户。

(ctx context.Context, inboundTag, email string)

Source from the content-addressed store, hash-verified

867
868// RemoveUser 从运行中的 Xray inbound 热删用户。
869func (m *Manager) RemoveUser(ctx context.Context, inboundTag, email string) error {
870 m.mu.Lock()
871 instance := m.instance
872 m.mu.Unlock()
873 if instance == nil {
874 return ErrNotRunning
875 }
876
877 return xrayRemoveUser(ctx, instance, inboundTag, email)
878}
879
880// buildAccount 根据协议类型将 UserConfig 转成 protocol.Account。
881func buildAccount(cfg coremanager.UserConfig) (protocol.Account, error) {

Callers

nothing calls this directly

Calls 1

xrayRemoveUserFunction · 0.85

Tested by

no test coverage detected