mocks

package
v0.0.0-...-1ff26e9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	mock.Mock
}

Cache is an autogenerated mock type for the Cache type

func (*Cache) CacheCheckInTime

func (_m *Cache) CacheCheckInTime(ctx context.Context, t *time.Time, tid string, id string) error

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

func (_m *Cache) DeleteToken(ctx context.Context, tid string, id string, idtype string) error

DeleteToken provides a mock function with given fields: ctx, tid, id, idtype

func (*Cache) GetCheckInTime

func (_m *Cache) GetCheckInTime(ctx context.Context, tid string, id string) (*time.Time, error)

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

func (_m *Cache) SuspendTenant(ctx context.Context, tid string) error

SuspendTenant provides a mock function with given fields: ctx, tid

func (*Cache) Throttle

func (_m *Cache) Throttle(ctx context.Context, rawToken string, l ratelimits.ApiLimits, tid string, id string, idtype string, url string, action string) (string, error)

Throttle provides a mock function with given fields: ctx, rawToken, l, tid, id, idtype, url, action

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL