(ctx context.Context, tag string, user Account)
| 59 | } |
| 60 | |
| 61 | func (x *XrayHandler) AddOutboundUser(ctx context.Context, tag string, user Account) error { |
| 62 | // Create the AddUserOperation message |
| 63 | account, err := user.Message() |
| 64 | if err != nil { |
| 65 | return err |
| 66 | } |
| 67 | operation, err := ToTypedMessage(&command.AddUserOperation{ |
| 68 | User: &protocol.User{ |
| 69 | Level: user.GetLevel(), |
| 70 | Email: user.GetEmail(), |
| 71 | Account: account, |
| 72 | }, |
| 73 | }) |
| 74 | if err != nil { |
| 75 | return err |
| 76 | } |
| 77 | |
| 78 | // Call the AlterInbound method with the AddUserOperation message |
| 79 | return x.AlertOutbound(ctx, tag, operation) |
| 80 | } |
| 81 | |
| 82 | func (x *XrayHandler) RemoveOutboundUser(ctx context.Context, tag, email string) error { |
| 83 | operation, err := ToTypedMessage(&command.RemoveUserOperation{ |
nothing calls this directly
no test coverage detected