Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: github.com/anyproto/any-sync/net/rpc/limiter (interfaces: RpcLimiter)
Generated by this command:
mockgen -destination mock_limiter/mock_limiter.go github.com/anyproto/any-sync/net/rpc/limiter RpcLimiter
Package mock_limiter is a generated GoMock package.
Index ¶
- type MockRpcLimiter
- func (m *MockRpcLimiter) Close(arg0 context.Context) error
- func (m *MockRpcLimiter) EXPECT() *MockRpcLimiterMockRecorder
- func (m *MockRpcLimiter) Init(arg0 *app.App) error
- func (m *MockRpcLimiter) Name() string
- func (m *MockRpcLimiter) Run(arg0 context.Context) error
- func (m *MockRpcLimiter) WrapDRPCHandler(arg0 drpc.Handler) drpc.Handler
- type MockRpcLimiterMockRecorder
- func (mr *MockRpcLimiterMockRecorder) Close(arg0 any) *gomock.Call
- func (mr *MockRpcLimiterMockRecorder) Init(arg0 any) *gomock.Call
- func (mr *MockRpcLimiterMockRecorder) Name() *gomock.Call
- func (mr *MockRpcLimiterMockRecorder) Run(arg0 any) *gomock.Call
- func (mr *MockRpcLimiterMockRecorder) WrapDRPCHandler(arg0 any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRpcLimiter ¶
type MockRpcLimiter struct {
// contains filtered or unexported fields
}
MockRpcLimiter is a mock of RpcLimiter interface.
func NewMockRpcLimiter ¶
func NewMockRpcLimiter(ctrl *gomock.Controller) *MockRpcLimiter
NewMockRpcLimiter creates a new mock instance.
func (*MockRpcLimiter) Close ¶
func (m *MockRpcLimiter) Close(arg0 context.Context) error
Close mocks base method.
func (*MockRpcLimiter) EXPECT ¶
func (m *MockRpcLimiter) EXPECT() *MockRpcLimiterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRpcLimiter) Init ¶
func (m *MockRpcLimiter) Init(arg0 *app.App) error
Init mocks base method.
func (*MockRpcLimiter) Run ¶
func (m *MockRpcLimiter) Run(arg0 context.Context) error
Run mocks base method.
func (*MockRpcLimiter) WrapDRPCHandler ¶
func (m *MockRpcLimiter) WrapDRPCHandler(arg0 drpc.Handler) drpc.Handler
WrapDRPCHandler mocks base method.
type MockRpcLimiterMockRecorder ¶
type MockRpcLimiterMockRecorder struct {
// contains filtered or unexported fields
}
MockRpcLimiterMockRecorder is the mock recorder for MockRpcLimiter.
func (*MockRpcLimiterMockRecorder) Close ¶
func (mr *MockRpcLimiterMockRecorder) Close(arg0 any) *gomock.Call
Close indicates an expected call of Close.
func (*MockRpcLimiterMockRecorder) Init ¶
func (mr *MockRpcLimiterMockRecorder) Init(arg0 any) *gomock.Call
Init indicates an expected call of Init.
func (*MockRpcLimiterMockRecorder) Name ¶
func (mr *MockRpcLimiterMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockRpcLimiterMockRecorder) Run ¶
func (mr *MockRpcLimiterMockRecorder) Run(arg0 any) *gomock.Call
Run indicates an expected call of Run.
func (*MockRpcLimiterMockRecorder) WrapDRPCHandler ¶
func (mr *MockRpcLimiterMockRecorder) WrapDRPCHandler(arg0 any) *gomock.Call
WrapDRPCHandler indicates an expected call of WrapDRPCHandler.