Documentation ¶
Index ¶
- type Cache
- func (_m *Cache) CacheCheckInTime(ctx context.Context, t *time.Time, tid string, id string) error
- func (_m *Cache) CacheLimits(ctx context.Context, l ratelimits.ApiLimits, tid string, id string, ...) error
- func (_m *Cache) CacheToken(ctx context.Context, tid string, id string, idtype string, token string, ...) error
- func (_m *Cache) DeleteToken(ctx context.Context, tid string, id string, idtype string) error
- func (_m *Cache) GetCheckInTime(ctx context.Context, tid string, id string) (*time.Time, error)
- func (_m *Cache) GetCheckInTimes(ctx context.Context, tid string, ids []string) ([]*time.Time, error)
- func (_m *Cache) GetLimits(ctx context.Context, tid string, id string, idtype string) (*ratelimits.ApiLimits, error)
- func (_m *Cache) SuspendTenant(ctx context.Context, tid string) error
- func (_m *Cache) Throttle(ctx context.Context, rawToken string, l ratelimits.ApiLimits, tid string, ...) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
Cache is an autogenerated mock type for the Cache type
func (*Cache) CacheCheckInTime ¶
CacheCheckInTime provides a mock function with given fields: ctx, t, tid, id
func (*Cache) CacheLimits ¶
func (_m *Cache) CacheLimits(ctx context.Context, l ratelimits.ApiLimits, tid string, id string, idtype string) error
CacheLimits provides a mock function with given fields: ctx, l, tid, id, idtype
func (*Cache) CacheToken ¶
func (_m *Cache) CacheToken(ctx context.Context, tid string, id string, idtype string, token string, expireSec time.Duration) error
CacheToken provides a mock function with given fields: ctx, tid, id, idtype, token, expireSec
func (*Cache) DeleteToken ¶
DeleteToken provides a mock function with given fields: ctx, tid, id, idtype
func (*Cache) GetCheckInTime ¶
GetCheckInTime provides a mock function with given fields: ctx, tid, id
func (*Cache) GetCheckInTimes ¶
func (_m *Cache) GetCheckInTimes(ctx context.Context, tid string, ids []string) ([]*time.Time, error)
GetCheckInTimes provides a mock function with given fields: ctx, tid, ids
func (*Cache) GetLimits ¶
func (_m *Cache) GetLimits(ctx context.Context, tid string, id string, idtype string) (*ratelimits.ApiLimits, error)
GetLimits provides a mock function with given fields: ctx, tid, id, idtype
func (*Cache) SuspendTenant ¶
SuspendTenant provides a mock function with given fields: ctx, tid