SyncUsers synchronizes multiple users to the WireGuard interface.
(_ context.Context, users []*common.User)
| 22 | |
| 23 | // SyncUsers synchronizes multiple users to the WireGuard interface. |
| 24 | func (wg *WireGuard) SyncUsers(_ context.Context, users []*common.User) error { |
| 25 | wg.syncMu.Lock() |
| 26 | defer wg.syncMu.Unlock() |
| 27 | |
| 28 | return wg.syncUsersFull(users) |
| 29 | } |
| 30 | |
| 31 | // UpdateUsers performs partial reconciliation for users provided in the request. |
| 32 | func (wg *WireGuard) UpdateUsers(_ context.Context, users []*common.User) error { |