Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: pubsub/pubsub_client.go
Generated by this command:
mockgen -source=pubsub/pubsub_client.go -destination=pubsub/mock/pubsub_client_mock.go
Package mock_pubsub is a generated GoMock package.
Index ¶
- type MockGooglePubSub
- func (m *MockGooglePubSub) Close() error
- func (m *MockGooglePubSub) CreateSubscription(ctx context.Context, id string, cfg pubsub.SubscriptionConfig) (*pubsub.Subscription, error)
- func (m *MockGooglePubSub) CreateTopic(ctx context.Context, topicID string) (*pubsub.Topic, error)
- func (m *MockGooglePubSub) EXPECT() *MockGooglePubSubMockRecorder
- func (m *MockGooglePubSub) Subscription(id string) *pubsub.Subscription
- func (m *MockGooglePubSub) Topic(id string) *pubsub.Topic
- type MockGooglePubSubMockRecorder
- func (mr *MockGooglePubSubMockRecorder) Close() *gomock.Call
- func (mr *MockGooglePubSubMockRecorder) CreateSubscription(ctx, id, cfg any) *gomock.Call
- func (mr *MockGooglePubSubMockRecorder) CreateTopic(ctx, topicID any) *gomock.Call
- func (mr *MockGooglePubSubMockRecorder) Subscription(id any) *gomock.Call
- func (mr *MockGooglePubSubMockRecorder) Topic(id any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockGooglePubSub ¶
type MockGooglePubSub struct {
// contains filtered or unexported fields
}
MockGooglePubSub is a mock of GooglePubSub interface.
func NewMockGooglePubSub ¶
func NewMockGooglePubSub(ctrl *gomock.Controller) *MockGooglePubSub
NewMockGooglePubSub creates a new mock instance.
func (*MockGooglePubSub) CreateSubscription ¶
func (m *MockGooglePubSub) CreateSubscription(ctx context.Context, id string, cfg pubsub.SubscriptionConfig) (*pubsub.Subscription, error)
CreateSubscription mocks base method.
func (*MockGooglePubSub) CreateTopic ¶
CreateTopic mocks base method.
func (*MockGooglePubSub) EXPECT ¶
func (m *MockGooglePubSub) EXPECT() *MockGooglePubSubMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGooglePubSub) Subscription ¶
func (m *MockGooglePubSub) Subscription(id string) *pubsub.Subscription
Subscription mocks base method.
type MockGooglePubSubMockRecorder ¶
type MockGooglePubSubMockRecorder struct {
// contains filtered or unexported fields
}
MockGooglePubSubMockRecorder is the mock recorder for MockGooglePubSub.
func (*MockGooglePubSubMockRecorder) Close ¶
func (mr *MockGooglePubSubMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockGooglePubSubMockRecorder) CreateSubscription ¶
func (mr *MockGooglePubSubMockRecorder) CreateSubscription(ctx, id, cfg any) *gomock.Call
CreateSubscription indicates an expected call of CreateSubscription.
func (*MockGooglePubSubMockRecorder) CreateTopic ¶
func (mr *MockGooglePubSubMockRecorder) CreateTopic(ctx, topicID any) *gomock.Call
CreateTopic indicates an expected call of CreateTopic.
func (*MockGooglePubSubMockRecorder) Subscription ¶
func (mr *MockGooglePubSubMockRecorder) Subscription(id any) *gomock.Call
Subscription indicates an expected call of Subscription.