-
Notifications
You must be signed in to change notification settings - Fork 258
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pull request 309: 6480 imp load balance
Updates AdguardTeam/AdGuardHome#6480. Squashed commit of the following: commit 053c830 Merge: 8f6b648 638288e Author: Eugene Burkov <[email protected]> Date: Mon Dec 18 18:27:31 2023 +0300 Merge branch 'master' into 6480-imp-load-balance commit 8f6b648 Author: Eugene Burkov <[email protected]> Date: Mon Dec 18 15:30:28 2023 +0300 proxy: imp docs commit 7927132 Author: Eugene Burkov <[email protected]> Date: Mon Dec 18 15:17:41 2023 +0300 proxy: unexport clock commit 5cbb56e Author: Eugene Burkov <[email protected]> Date: Mon Dec 18 15:01:01 2023 +0300 proxy: imp code commit df5863b Author: Eugene Burkov <[email protected]> Date: Mon Dec 18 12:47:34 2023 +0300 proxy: return algo commit 2ad8274 Author: Eugene Burkov <[email protected]> Date: Fri Dec 15 19:57:14 2023 +0300 proxy: imp code, algo commit 068bcd8 Author: Eugene Burkov <[email protected]> Date: Fri Dec 15 16:18:48 2023 +0300 proxy: imp code, change algo commit 932f00f Author: Eugene Burkov <[email protected]> Date: Thu Dec 14 18:50:02 2023 +0300 proxy: imp docs commit 62d9b57 Author: Eugene Burkov <[email protected]> Date: Thu Dec 14 16:36:25 2023 +0300 proxy: imp test commit 90aa395 Author: Eugene Burkov <[email protected]> Date: Thu Dec 14 15:00:37 2023 +0300 proxy: imp tests commit 69ba821 Author: Eugene Burkov <[email protected]> Date: Wed Dec 13 19:26:56 2023 +0300 proxy: imp algo commit d7bf7b9 Author: Eugene Burkov <[email protected]> Date: Thu Dec 7 19:28:53 2023 +0300 all: fix nil deref commit bb4ceb6 Merge: cc26532 d6ebaac Author: Eugene Burkov <[email protected]> Date: Thu Dec 7 19:16:34 2023 +0300 Merge branch 'master' into 6480-test-load-balance commit cc26532 Author: Eugene Burkov <[email protected]> Date: Thu Dec 7 18:46:17 2023 +0300 proxy: test load balancing
- Loading branch information
1 parent
638288e
commit 06d548f
Showing
9 changed files
with
392 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package proxy | ||
|
||
import "time" | ||
|
||
// clock is the interface for provider of current time. It's used to simplify | ||
// testing. | ||
// | ||
// TODO(e.burkov): Move to golibs. | ||
type clock interface { | ||
// Now returns the current local time. | ||
Now() (now time.Time) | ||
} | ||
|
||
// type check | ||
var _ clock = realClock{} | ||
|
||
// realClock is the [clock] which actually uses the [time] package. | ||
type realClock struct{} | ||
|
||
// Now implements the [clock] interface for RealClock. | ||
func (realClock) Now() (now time.Time) { return time.Now() } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.