1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-30 13:17:11 -05:00
v2fly/common
Chinsyo dc78733196
Refactor common/antireplay, unexport unnecessary public fields. (#422)
* rename AuthIDDecoderHolder private fields

* ignore unused return value more clear

* change PoolSwap to private fields

* refactor Unlock to defer

* use const capacity, reorder code layout

* replace mismatch field name poolX with type Filter

* change AntiReplayTime to private fileds, protect to modify

* rename lastSwapTime to lastSwap

* merge duplicate time.Now.
Since the current unit is in seconds, there is no need to repeat the call

* refine negate expression

* rename antiReplayTime to interval

* add docs

* fix lint stutter issue, rename antireplay.AntiReplayWindow to antireplay.ReplayFilter

* rename fileds m,n to poolA,poolB

* rename antireplay.go to replayfilter.go

* fix build issue

Co-authored-by: Chinsyo <chinsyo@sina.cn>
2020-11-17 21:05:26 +08:00
..
antireplay Refactor common/antireplay, unexport unnecessary public fields. (#422) 2020-11-17 21:05:26 +08:00
bitmask remove dependency on assert lib 2019-01-31 20:57:01 +01:00
buf Refine code according to golangci-lint results 2020-10-11 19:22:46 +08:00
bytespool Refine code according to golangci-lint results 2020-10-11 19:22:46 +08:00
cmdarg revert back to multiconfig 2020-03-19 19:11:16 +08:00
crypto Errorgen: support to run outside of GOPATH 2020-10-04 13:06:12 +08:00
dice Reorder dice_test.go 2020-11-14 05:06:07 +00:00
errors Refine errorgen 2020-10-04 13:06:11 +08:00
log Refine code according to golangci-lint results 2020-10-11 19:22:46 +08:00
mux Refine code according to golangci-lint results 2020-10-11 19:22:46 +08:00
net Refine unix domain socket (#367) 2020-10-29 07:30:38 +00:00
peer function to compare byte array 2018-07-12 23:38:10 +02:00
platform Refine code according to golangci-lint results 2020-10-11 19:22:46 +08:00
protocol Refine code according to golangci-lint results 2020-10-11 19:22:46 +08:00
retry Refine code according to golangci-lint results 2020-10-11 19:22:46 +08:00
serial Format proto files using clang-format according to google style (#264) 2020-10-05 08:36:40 +08:00
session Routing Context: Fix GetUser() & Use string for Attributes Value 2020-09-13 00:34:35 +08:00
signal Refine code according to golangci-lint results 2020-10-11 19:22:46 +08:00
stack Fix a typo 2020-08-25 17:55:53 +08:00
strmatcher Minor fixes 2020-09-01 08:46:55 +08:00
task Refine code according to golangci-lint results 2020-10-11 19:22:46 +08:00
uuid Apply Debian's patch to upstream 2020-06-24 12:57:03 +08:00
common_test.go remove dependency on assert lib 2019-01-18 15:59:39 +01:00
common.go Errorgen: support to run outside of GOPATH 2020-10-04 13:06:12 +08:00
errors.generated.go simplify error creation 2018-09-30 18:39:53 +02:00
interfaces.go comments 2019-01-01 20:16:04 +01:00
type_test.go remove dep on assert lib 2019-02-02 22:19:30 +01:00
type.go cleanup error messages 2017-04-09 15:04:04 +02:00