Documentation
¶
Index ¶
- type Checker
- type Checker_Check_Call
- func (_c *Checker_Check_Call) Return(_a0 error) *Checker_Check_Call
- func (_c *Checker_Check_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind])) *Checker_Check_Call
- func (_c *Checker_Check_Call) RunAndReturn(run func(context.Context, ids.ID[ids.GatewayKind]) error) *Checker_Check_Call
- type Checker_Expecter
- type Counter
- type Counter_Expecter
- type Counter_IncrBurst_Call
- func (_c *Counter_IncrBurst_Call) Return(count int64, ttl time.Duration, err error) *Counter_IncrBurst_Call
- func (_c *Counter_IncrBurst_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind])) *Counter_IncrBurst_Call
- func (_c *Counter_IncrBurst_Call) RunAndReturn(...) *Counter_IncrBurst_Call
- type Counter_IncrQuota_Call
- func (_c *Counter_IncrQuota_Call) Return(count int64, err error) *Counter_IncrQuota_Call
- func (_c *Counter_IncrQuota_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], month string)) *Counter_IncrQuota_Call
- func (_c *Counter_IncrQuota_Call) RunAndReturn(run func(context.Context, ids.ID[ids.GatewayKind], string) (int64, error)) *Counter_IncrQuota_Call
- type GatewayTierLoader
- type GatewayTierLoader_Expecter
- type GatewayTierLoader_Tier_Call
- func (_c *GatewayTierLoader_Tier_Call) Return(_a0 string, _a1 error) *GatewayTierLoader_Tier_Call
- func (_c *GatewayTierLoader_Tier_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind])) *GatewayTierLoader_Tier_Call
- func (_c *GatewayTierLoader_Tier_Call) RunAndReturn(run func(context.Context, ids.ID[ids.GatewayKind]) (string, error)) *GatewayTierLoader_Tier_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
Checker is an autogenerated mock type for the Checker type
func NewChecker ¶
NewChecker creates a new instance of Checker. 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 (*Checker) EXPECT ¶
func (_m *Checker) EXPECT() *Checker_Expecter
type Checker_Check_Call ¶
Checker_Check_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Check'
func (*Checker_Check_Call) Return ¶
func (_c *Checker_Check_Call) Return(_a0 error) *Checker_Check_Call
func (*Checker_Check_Call) Run ¶
func (_c *Checker_Check_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind])) *Checker_Check_Call
func (*Checker_Check_Call) RunAndReturn ¶
func (_c *Checker_Check_Call) RunAndReturn(run func(context.Context, ids.ID[ids.GatewayKind]) error) *Checker_Check_Call
type Checker_Expecter ¶
type Checker_Expecter struct {
// contains filtered or unexported fields
}
func (*Checker_Expecter) Check ¶
func (_e *Checker_Expecter) Check(ctx interface{}, gatewayID interface{}) *Checker_Check_Call
Check is a helper method to define mock.On call
- ctx context.Context
- gatewayID ids.ID[ids.GatewayKind]
type Counter ¶
Counter is an autogenerated mock type for the Counter type
func NewCounter ¶
NewCounter creates a new instance of Counter. 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 (*Counter) EXPECT ¶
func (_m *Counter) EXPECT() *Counter_Expecter
type Counter_Expecter ¶
type Counter_Expecter struct {
// contains filtered or unexported fields
}
func (*Counter_Expecter) IncrBurst ¶
func (_e *Counter_Expecter) IncrBurst(ctx interface{}, gatewayID interface{}) *Counter_IncrBurst_Call
IncrBurst is a helper method to define mock.On call
- ctx context.Context
- gatewayID ids.ID[ids.GatewayKind]
func (*Counter_Expecter) IncrQuota ¶
func (_e *Counter_Expecter) IncrQuota(ctx interface{}, gatewayID interface{}, month interface{}) *Counter_IncrQuota_Call
IncrQuota is a helper method to define mock.On call
- ctx context.Context
- gatewayID ids.ID[ids.GatewayKind]
- month string
type Counter_IncrBurst_Call ¶
Counter_IncrBurst_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IncrBurst'
func (*Counter_IncrBurst_Call) Return ¶
func (_c *Counter_IncrBurst_Call) Return(count int64, ttl time.Duration, err error) *Counter_IncrBurst_Call
func (*Counter_IncrBurst_Call) Run ¶
func (_c *Counter_IncrBurst_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind])) *Counter_IncrBurst_Call
func (*Counter_IncrBurst_Call) RunAndReturn ¶
func (_c *Counter_IncrBurst_Call) RunAndReturn(run func(context.Context, ids.ID[ids.GatewayKind]) (int64, time.Duration, error)) *Counter_IncrBurst_Call
type Counter_IncrQuota_Call ¶
Counter_IncrQuota_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IncrQuota'
func (*Counter_IncrQuota_Call) Return ¶
func (_c *Counter_IncrQuota_Call) Return(count int64, err error) *Counter_IncrQuota_Call
func (*Counter_IncrQuota_Call) Run ¶
func (_c *Counter_IncrQuota_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], month string)) *Counter_IncrQuota_Call
func (*Counter_IncrQuota_Call) RunAndReturn ¶
func (_c *Counter_IncrQuota_Call) RunAndReturn(run func(context.Context, ids.ID[ids.GatewayKind], string) (int64, error)) *Counter_IncrQuota_Call
type GatewayTierLoader ¶
GatewayTierLoader is an autogenerated mock type for the GatewayTierLoader type
func NewGatewayTierLoader ¶
func NewGatewayTierLoader(t interface {
mock.TestingT
Cleanup(func())
}) *GatewayTierLoader
NewGatewayTierLoader creates a new instance of GatewayTierLoader. 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 (*GatewayTierLoader) EXPECT ¶
func (_m *GatewayTierLoader) EXPECT() *GatewayTierLoader_Expecter
type GatewayTierLoader_Expecter ¶
type GatewayTierLoader_Expecter struct {
// contains filtered or unexported fields
}
func (*GatewayTierLoader_Expecter) Tier ¶
func (_e *GatewayTierLoader_Expecter) Tier(ctx interface{}, gatewayID interface{}) *GatewayTierLoader_Tier_Call
Tier is a helper method to define mock.On call
- ctx context.Context
- gatewayID ids.ID[ids.GatewayKind]
type GatewayTierLoader_Tier_Call ¶
GatewayTierLoader_Tier_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Tier'
func (*GatewayTierLoader_Tier_Call) Return ¶
func (_c *GatewayTierLoader_Tier_Call) Return(_a0 string, _a1 error) *GatewayTierLoader_Tier_Call
func (*GatewayTierLoader_Tier_Call) Run ¶
func (_c *GatewayTierLoader_Tier_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind])) *GatewayTierLoader_Tier_Call
func (*GatewayTierLoader_Tier_Call) RunAndReturn ¶
func (_c *GatewayTierLoader_Tier_Call) RunAndReturn(run func(context.Context, ids.ID[ids.GatewayKind]) (string, error)) *GatewayTierLoader_Tier_Call