rate_limiter_impl.go ×1

Frontier kind: Code frontier

unlabeled · c_6e90c9d4f725

14 tests · 28 LOC · 3 files · introduces 0 tests · 6 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
1 range6 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
4 ranges28 lines · 3 files · Browse complete extent
All tests (intent)
14 testsBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Introduced files, introduced tests, and structurally relevant concept specializationcontext_impl.go ×1 · 2 introduced LOCcontext_impl.go ×1TestBusinessIDReuseRateLimiter_BlocksOverLimit, TestBusinessIDReuseRateLimiter_AllowsUnderLimit, +3 · 0 introduced LOCTestBusinessIDReuseRateL…TestBusinessIDReuseRateLimiter_BurstRatio · 0 introduced LOCTestBusinessIDReuseRateL…context_impl.go ×3 · 11 introduced LOCcontext_impl.go ×3dynamic_rate_limiter_impl.go ×1 · 4 introduced LOCdynamic_rate_limiter_imp…TestSetRateBurst_Diff · 0 introduced LOCTestSetRateBurst_DiffTestSetBurst_Diff · 0 introduced LOCTestSetBurst_DiffTestSetRate_Diff · 0 introduced LOCTestSetRate_DiffTestSetRateBurst_Same · 0 introduced LOCTestSetRateBurst_Samerate_limiter_impl.go ×1 · 3 introduced LOCrate_limiter_impl.go ×1rate_limiter_impl.go ×1 · 3 introduced LOCrate_limiter_impl.go ×1rate_limiter_impl.go ×1 · 12 introduced LOCrate_limiter_impl.go ×1clocked_rate_limiter.go ×1 · 7 introduced LOCclocked_rate_limiter.go …time_source.go ×1 · 3 introduced LOCtime_source.go ×1TestOperatorServiceMetadata, TestWorkflowServiceMetadata · 0 introduced LOCTestOperatorServiceMetad…go.temporal.io/server/common/clock/time_source.go · 56 LOCclock/time_source.gogo.temporal.io/server/common/quotas/clocked_rate_limiter.go · 170 LOCquotas/clocked_rate_limi…go.temporal.io/server/common/quotas/dynamic_rate_limiter_impl.go · 150 LOCquotas/dynamic_rate_limi…go.temporal.io/server/common/quotas/rate_limiter_impl.go · 115 LOCquotas/rate_limiter_impl…go.temporal.io/server/service/history/shard/context_impl.go · 2369 LOCshard/context_impl.goTestOperatorServiceMetadata · introduced test · go.temporal.io/server/common/api/TestOperatorServiceMetadataTestOperatorServiceMetad…TestWorkflowServiceMetadata · introduced test · go.temporal.io/server/common/api/TestWorkflowServiceMetadataTestWorkflowServiceMetad…burst_refreshes_without_token_operation · introduced test · go.temporal.io/server/common/quotas/TestDynamicRateLimiterRateAndBurstRefreshAfterInterval/burst_refreshes_without_token_operationburst_refreshes_without_…TestSetBurst_Diff · introduced test · go.temporal.io/server/common/quotas/TestRateLimiterSuite/TestSetBurst_DiffTestSetBurst_DiffTestSetBurst_Same · introduced test · go.temporal.io/server/common/quotas/TestRateLimiterSuite/TestSetBurst_SameTestSetBurst_SameTestSetRateBurst_Diff · introduced test · go.temporal.io/server/common/quotas/TestRateLimiterSuite/TestSetRateBurst_DiffTestSetRateBurst_DiffTestSetRateBurst_Same · introduced test · go.temporal.io/server/common/quotas/TestRateLimiterSuite/TestSetRateBurst_SameTestSetRateBurst_SameTestSetRate_Diff · introduced test · go.temporal.io/server/common/quotas/TestRateLimiterSuite/TestSetRate_DiffTestSetRate_DiffTestSetRate_Same · introduced test · go.temporal.io/server/common/quotas/TestRateLimiterSuite/TestSetRate_SameTestSetRate_SameTestBusinessIDReuseRateLimiter_AllowsUnderLimit · introduced test · go.temporal.io/server/service/history/shard/TestBusinessIDReuseRateLimiter_AllowsUnderLimitTestBusinessIDReuseRateL…TestBusinessIDReuseRateLimiter_BlocksOverLimit · introduced test · go.temporal.io/server/service/history/shard/TestBusinessIDReuseRateLimiter_BlocksOverLimitTestBusinessIDReuseRateL…TestBusinessIDReuseRateLimiter_BurstRatio · introduced test · go.temporal.io/server/service/history/shard/TestBusinessIDReuseRateLimiter_BurstRatioTestBusinessIDReuseRateL…TestBusinessIDReuseRateLimiter_BurstUpdatesOnConfigChange · introduced test · go.temporal.io/server/service/history/shard/TestBusinessIDReuseRateLimiter_BurstUpdatesOnConfigChangeTestBusinessIDReuseRateL…TestBusinessIDReuseRateLimiter_IndependentArchetypes · introduced test · go.temporal.io/server/service/history/shard/TestBusinessIDReuseRateLimiter_IndependentArchetypesTestBusinessIDReuseRateL…TestBusinessIDReuseRateLimiter_IndependentBusinessIDs · introduced test · go.temporal.io/server/service/history/shard/TestBusinessIDReuseRateLimiter_IndependentBusinessIDsTestBusinessIDReuseRateL…TestBusinessIDReuseRateLimiter_IndependentNamespaces · introduced test · go.temporal.io/server/service/history/shard/TestBusinessIDReuseRateLimiter_IndependentNamespacesTestBusinessIDReuseRateL…Focused concept · rate_limiter_impl.go ×1 · 6 introduced LOCrate_limiter_impl.go ×1

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

1 file ranked by introduced lines: 6 introduced LOC across 1 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/quotas/rate_limiter_impl.go 6 introduced LOC · 1 range

Open complete file

69
70 // Burst returns the burst for this rate limiter
71 > func (rl *RateLimiterImpl) Burst() int { rate_limiter_impl.go
72 > rl.Lock()
73 > defer rl.Unlock()
74 >
75 > return rl.burst
76 > }
77
78 // TokensAt returns the number of tokens that will be available at time t