Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: ./pubsub.go
Generated by this command:
mockgen -typed -package=mocks -destination=./mocks/publisher.go -source=./pubsub.go
Package mocks is a generated GoMock package.
Index ¶
- type MockPublishSubsciber
- type MockPublishSubsciberMockRecorder
- type MockPublisher
- type MockPublisherMockRecorder
- type MockSubscriber
- type MockSubscriberMockRecorder
- type PublishSubsciberPublishCall
- func (c *PublishSubsciberPublishCall) Do(f func(context.Context, string, []byte) error) *PublishSubsciberPublishCall
- func (c *PublishSubsciberPublishCall) DoAndReturn(f func(context.Context, string, []byte) error) *PublishSubsciberPublishCall
- func (c *PublishSubsciberPublishCall) Return(arg0 error) *PublishSubsciberPublishCall
- type PublishSubsciberRegisterCall
- func (c *PublishSubsciberRegisterCall) Do(f func(string, pubsub.GossipHandler, ...pubsub.ValidatorOpt)) *PublishSubsciberRegisterCall
- func (c *PublishSubsciberRegisterCall) DoAndReturn(f func(string, pubsub.GossipHandler, ...pubsub.ValidatorOpt)) *PublishSubsciberRegisterCall
- func (c *PublishSubsciberRegisterCall) Return() *PublishSubsciberRegisterCall
- type PublisherPublishCall
- type SubscriberRegisterCall
- func (c *SubscriberRegisterCall) Do(f func(string, pubsub.GossipHandler, ...pubsub.ValidatorOpt)) *SubscriberRegisterCall
- func (c *SubscriberRegisterCall) DoAndReturn(f func(string, pubsub.GossipHandler, ...pubsub.ValidatorOpt)) *SubscriberRegisterCall
- func (c *SubscriberRegisterCall) Return() *SubscriberRegisterCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPublishSubsciber ¶
type MockPublishSubsciber struct {
// contains filtered or unexported fields
}
MockPublishSubsciber is a mock of PublishSubsciber interface.
func NewMockPublishSubsciber ¶
func NewMockPublishSubsciber(ctrl *gomock.Controller) *MockPublishSubsciber
NewMockPublishSubsciber creates a new mock instance.
func (*MockPublishSubsciber) EXPECT ¶
func (m *MockPublishSubsciber) EXPECT() *MockPublishSubsciberMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPublishSubsciber) Register ¶
func (m *MockPublishSubsciber) Register(arg0 string, arg1 pubsub.GossipHandler, arg2 ...pubsub.ValidatorOpt)
Register mocks base method.
type MockPublishSubsciberMockRecorder ¶
type MockPublishSubsciberMockRecorder struct {
// contains filtered or unexported fields
}
MockPublishSubsciberMockRecorder is the mock recorder for MockPublishSubsciber.
func (*MockPublishSubsciberMockRecorder) Publish ¶
func (mr *MockPublishSubsciberMockRecorder) Publish(arg0, arg1, arg2 any) *PublishSubsciberPublishCall
Publish indicates an expected call of Publish.
func (*MockPublishSubsciberMockRecorder) Register ¶
func (mr *MockPublishSubsciberMockRecorder) Register(arg0, arg1 any, arg2 ...any) *PublishSubsciberRegisterCall
Register indicates an expected call of Register.
type MockPublisher ¶
type MockPublisher struct {
// contains filtered or unexported fields
}
MockPublisher is a mock of Publisher interface.
func NewMockPublisher ¶
func NewMockPublisher(ctrl *gomock.Controller) *MockPublisher
NewMockPublisher creates a new mock instance.
func (*MockPublisher) EXPECT ¶
func (m *MockPublisher) EXPECT() *MockPublisherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockPublisherMockRecorder ¶
type MockPublisherMockRecorder struct {
// contains filtered or unexported fields
}
MockPublisherMockRecorder is the mock recorder for MockPublisher.
func (*MockPublisherMockRecorder) Publish ¶
func (mr *MockPublisherMockRecorder) Publish(arg0, arg1, arg2 any) *PublisherPublishCall
Publish indicates an expected call of Publish.
type MockSubscriber ¶
type MockSubscriber struct {
// contains filtered or unexported fields
}
MockSubscriber is a mock of Subscriber interface.
func NewMockSubscriber ¶
func NewMockSubscriber(ctrl *gomock.Controller) *MockSubscriber
NewMockSubscriber creates a new mock instance.
func (*MockSubscriber) EXPECT ¶
func (m *MockSubscriber) EXPECT() *MockSubscriberMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSubscriber) Register ¶
func (m *MockSubscriber) Register(arg0 string, arg1 pubsub.GossipHandler, arg2 ...pubsub.ValidatorOpt)
Register mocks base method.
type MockSubscriberMockRecorder ¶
type MockSubscriberMockRecorder struct {
// contains filtered or unexported fields
}
MockSubscriberMockRecorder is the mock recorder for MockSubscriber.
func (*MockSubscriberMockRecorder) Register ¶
func (mr *MockSubscriberMockRecorder) Register(arg0, arg1 any, arg2 ...any) *SubscriberRegisterCall
Register indicates an expected call of Register.
type PublishSubsciberPublishCall ¶ added in v1.1.5
PublishSubsciberPublishCall wrap *gomock.Call
func (*PublishSubsciberPublishCall) Do ¶ added in v1.1.5
func (c *PublishSubsciberPublishCall) Do(f func(context.Context, string, []byte) error) *PublishSubsciberPublishCall
Do rewrite *gomock.Call.Do
func (*PublishSubsciberPublishCall) DoAndReturn ¶ added in v1.1.5
func (c *PublishSubsciberPublishCall) DoAndReturn(f func(context.Context, string, []byte) error) *PublishSubsciberPublishCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*PublishSubsciberPublishCall) Return ¶ added in v1.1.5
func (c *PublishSubsciberPublishCall) Return(arg0 error) *PublishSubsciberPublishCall
Return rewrite *gomock.Call.Return
type PublishSubsciberRegisterCall ¶ added in v1.1.5
PublishSubsciberRegisterCall wrap *gomock.Call
func (*PublishSubsciberRegisterCall) Do ¶ added in v1.1.5
func (c *PublishSubsciberRegisterCall) Do(f func(string, pubsub.GossipHandler, ...pubsub.ValidatorOpt)) *PublishSubsciberRegisterCall
Do rewrite *gomock.Call.Do
func (*PublishSubsciberRegisterCall) DoAndReturn ¶ added in v1.1.5
func (c *PublishSubsciberRegisterCall) DoAndReturn(f func(string, pubsub.GossipHandler, ...pubsub.ValidatorOpt)) *PublishSubsciberRegisterCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*PublishSubsciberRegisterCall) Return ¶ added in v1.1.5
func (c *PublishSubsciberRegisterCall) Return() *PublishSubsciberRegisterCall
Return rewrite *gomock.Call.Return
type PublisherPublishCall ¶ added in v1.1.5
PublisherPublishCall wrap *gomock.Call
func (*PublisherPublishCall) Do ¶ added in v1.1.5
func (c *PublisherPublishCall) Do(f func(context.Context, string, []byte) error) *PublisherPublishCall
Do rewrite *gomock.Call.Do
func (*PublisherPublishCall) DoAndReturn ¶ added in v1.1.5
func (c *PublisherPublishCall) DoAndReturn(f func(context.Context, string, []byte) error) *PublisherPublishCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*PublisherPublishCall) Return ¶ added in v1.1.5
func (c *PublisherPublishCall) Return(arg0 error) *PublisherPublishCall
Return rewrite *gomock.Call.Return
type SubscriberRegisterCall ¶ added in v1.1.5
SubscriberRegisterCall wrap *gomock.Call
func (*SubscriberRegisterCall) Do ¶ added in v1.1.5
func (c *SubscriberRegisterCall) Do(f func(string, pubsub.GossipHandler, ...pubsub.ValidatorOpt)) *SubscriberRegisterCall
Do rewrite *gomock.Call.Do
func (*SubscriberRegisterCall) DoAndReturn ¶ added in v1.1.5
func (c *SubscriberRegisterCall) DoAndReturn(f func(string, pubsub.GossipHandler, ...pubsub.ValidatorOpt)) *SubscriberRegisterCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*SubscriberRegisterCall) Return ¶ added in v1.1.5
func (c *SubscriberRegisterCall) Return() *SubscriberRegisterCall
Return rewrite *gomock.Call.Return