Documentation ¶
Index ¶
- func TestPeriodFailureLimit[S limit.PeriodFailureStorage](t *testing.T, store S, opts ...limit.PeriodLimitOption)
- func TestPeriodFailureLimit_Check[S limit.PeriodFailureStorage](t *testing.T, store S)
- func TestPeriodFailureLimit_CheckWithAlign[S limit.PeriodFailureStorage](t *testing.T, store S)
- func TestPeriodFailureLimit_Check_In_Limit_Failure_Time_Then_Success[S limit.PeriodFailureStorage](t *testing.T, store S)
- func TestPeriodFailureLimit_Check_Over_Limit_Failure_Time_Then_Success_Always_OverFailureTimeError[S limit.PeriodFailureStorage](t *testing.T, store S)
- func TestPeriodFailureLimit_Del[S limit.PeriodFailureStorage](t *testing.T, store S)
- func TestPeriodFailureLimit_RedisUnavailable[S limit.PeriodFailureStorage](t *testing.T, store S)
- func TestPeriodFailureLimit_SetQuotaFull[S limit.PeriodFailureStorage](t *testing.T, store S)
- func TestPeriodLimit_Del[S limit.PeriodStorage](t *testing.T, store S)
- func TestPeriodLimit_QuotaFull[S limit.PeriodStorage](t *testing.T, store S)
- func TestPeriodLimit_RedisUnavailable[S limit.PeriodStorage](t *testing.T, store S)
- func TestPeriodLimit_SetQuotaFull[S limit.PeriodStorage](t *testing.T, store S)
- func TestPeriodLimit_Take[S limit.PeriodStorage](t *testing.T, store S)
- func TestPeriodLimit_TakeWithAlign[S limit.PeriodStorage](t *testing.T, store S)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestPeriodFailureLimit ¶
func TestPeriodFailureLimit[S limit.PeriodFailureStorage](t *testing.T, store S, opts ...limit.PeriodLimitOption)
func TestPeriodFailureLimit_Check ¶
func TestPeriodFailureLimit_Check[S limit.PeriodFailureStorage](t *testing.T, store S)
func TestPeriodFailureLimit_CheckWithAlign ¶
func TestPeriodFailureLimit_CheckWithAlign[S limit.PeriodFailureStorage](t *testing.T, store S)
func TestPeriodFailureLimit_Check_In_Limit_Failure_Time_Then_Success ¶
func TestPeriodFailureLimit_Check_In_Limit_Failure_Time_Then_Success[S limit.PeriodFailureStorage](t *testing.T, store S)
func TestPeriodFailureLimit_Check_Over_Limit_Failure_Time_Then_Success_Always_OverFailureTimeError ¶
func TestPeriodFailureLimit_Check_Over_Limit_Failure_Time_Then_Success_Always_OverFailureTimeError[S limit.PeriodFailureStorage](t *testing.T, store S)
func TestPeriodFailureLimit_Del ¶
func TestPeriodFailureLimit_Del[S limit.PeriodFailureStorage](t *testing.T, store S)
func TestPeriodFailureLimit_RedisUnavailable ¶
func TestPeriodFailureLimit_RedisUnavailable[S limit.PeriodFailureStorage](t *testing.T, store S)
func TestPeriodFailureLimit_SetQuotaFull ¶
func TestPeriodFailureLimit_SetQuotaFull[S limit.PeriodFailureStorage](t *testing.T, store S)
func TestPeriodLimit_Del ¶
func TestPeriodLimit_Del[S limit.PeriodStorage](t *testing.T, store S)
func TestPeriodLimit_QuotaFull ¶
func TestPeriodLimit_QuotaFull[S limit.PeriodStorage](t *testing.T, store S)
func TestPeriodLimit_RedisUnavailable ¶
func TestPeriodLimit_RedisUnavailable[S limit.PeriodStorage](t *testing.T, store S)
func TestPeriodLimit_SetQuotaFull ¶
func TestPeriodLimit_SetQuotaFull[S limit.PeriodStorage](t *testing.T, store S)
func TestPeriodLimit_Take ¶
func TestPeriodLimit_Take[S limit.PeriodStorage](t *testing.T, store S)
func TestPeriodLimit_TakeWithAlign ¶
func TestPeriodLimit_TakeWithAlign[S limit.PeriodStorage](t *testing.T, store S)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.