Documentation ¶
Index ¶
- type FileRepository
- type FileUploadQueue
- type QuotaResetService
- type RateLimitService
- type RateLimiter
- type UploadService
- type UserRepository
- func (_m *UserRepository) DecrementUsage(ctx context.Context, userID string, usage int64) error
- func (_m *UserRepository) GetUserRateLimit(ctx context.Context, userID string) (int, error)
- func (_m *UserRepository) IncrementUsage(ctx context.Context, userID string, usage int64) error
- func (_m *UserRepository) ResetUsage(ctx context.Context, end time.Time) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileRepository ¶
FileRepository is an autogenerated mock type for the FileRepository type
func NewFileRepository ¶
func NewFileRepository(t interface { mock.TestingT Cleanup(func()) }) *FileRepository
NewFileRepository creates a new instance of FileRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*FileRepository) CheckAndStoreUniqueID ¶
func (_m *FileRepository) CheckAndStoreUniqueID(ctx context.Context, id string, ttl time.Duration) error
CheckAndStoreUniqueID provides a mock function with given fields: ctx, id, ttl
type FileUploadQueue ¶
FileUploadQueue is an autogenerated mock type for the FileUploadQueue type
func NewFileUploadQueue ¶
func NewFileUploadQueue(t interface { mock.TestingT Cleanup(func()) }) *FileUploadQueue
NewFileUploadQueue creates a new instance of FileUploadQueue. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
type QuotaResetService ¶
QuotaResetService is an autogenerated mock type for the QuotaResetService type
func NewQuotaResetService ¶
func NewQuotaResetService(t interface { mock.TestingT Cleanup(func()) }) *QuotaResetService
NewQuotaResetService creates a new instance of QuotaResetService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*QuotaResetService) ResetUserQuota ¶
func (_m *QuotaResetService) ResetUserQuota(ctx context.Context) error
ResetUserQuota provides a mock function with given fields: ctx
type RateLimitService ¶
RateLimitService is an autogenerated mock type for the RateLimitService type
func NewRateLimitService ¶
func NewRateLimitService(t interface { mock.TestingT Cleanup(func()) }) *RateLimitService
NewRateLimitService creates a new instance of RateLimitService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*RateLimitService) CheckRateLimit ¶
func (_m *RateLimitService) CheckRateLimit(ctx context.Context, userID string) error
CheckRateLimit provides a mock function with given fields: ctx, userID
type RateLimiter ¶
RateLimiter is an autogenerated mock type for the RateLimiter type
func NewRateLimiter ¶
func NewRateLimiter(t interface { mock.TestingT Cleanup(func()) }) *RateLimiter
NewRateLimiter creates a new instance of RateLimiter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*RateLimiter) GetUserLimit ¶
GetUserLimit provides a mock function with given fields: ctx, userID
func (*RateLimiter) IsAllowed ¶
IsAllowed provides a mock function with given fields: ctx, userID, limit
func (*RateLimiter) SetUserLimit ¶
SetUserLimit provides a mock function with given fields: ctx, userID, limit
type UploadService ¶
UploadService is an autogenerated mock type for the UploadService type
func NewUploadService ¶
func NewUploadService(t interface { mock.TestingT Cleanup(func()) }) *UploadService
NewUploadService creates a new instance of UploadService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*UploadService) UploadFile ¶
UploadFile provides a mock function with given fields: ctx, file
type UserRepository ¶
UserRepository is an autogenerated mock type for the UserRepository type
func NewUserRepository ¶
func NewUserRepository(t interface { mock.TestingT Cleanup(func()) }) *UserRepository
NewUserRepository creates a new instance of UserRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*UserRepository) DecrementUsage ¶
DecrementUsage provides a mock function with given fields: ctx, userID, usage
func (*UserRepository) GetUserRateLimit ¶
GetUserRateLimit provides a mock function with given fields: ctx, userID
func (*UserRepository) IncrementUsage ¶
IncrementUsage provides a mock function with given fields: ctx, userID, usage
func (*UserRepository) ResetUsage ¶
ResetUsage provides a mock function with given fields: ctx, end