MCPcopy Create free account
hub / github.com/PasarGuard/node / RemoveInboundUser

Method RemoveInboundUser

backend/xray/api/proxyman.go:49–59  ·  view source on GitHub ↗
(ctx context.Context, tag, email string)

Source from the content-addressed store, hash-verified

47}
48
49func (x *XrayHandler) RemoveInboundUser(ctx context.Context, tag, email string) error {
50 operation, err := ToTypedMessage(&command.RemoveUserOperation{
51 Email: email,
52 })
53 if err != nil {
54 return err
55 }
56
57 // Call the AlterInbound method with the AddUserOperation message
58 return x.AlertInbound(ctx, tag, operation)
59}
60
61func (x *XrayHandler) AddOutboundUser(ctx context.Context, tag string, user Account) error {
62 // Create the AddUserOperation message

Callers 2

SyncUserMethod · 0.80
UpdateUsersMethod · 0.80

Calls 2

AlertInboundMethod · 0.95
ToTypedMessageFunction · 0.85

Tested by

no test coverage detected