mocks

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeliveryAttemptRepository

type DeliveryAttemptRepository struct {
	mock.Mock
}

DeliveryAttemptRepository is an autogenerated mock type for the DeliveryAttemptRepository type

func (*DeliveryAttemptRepository) Find

Find provides a mock function with given fields: ctx, id

func (*DeliveryAttemptRepository) FindAll

FindAll provides a mock function with given fields: ctx, findOptions

func (*DeliveryAttemptRepository) Store

func (_m *DeliveryAttemptRepository) Store(ctx context.Context, deliveryAttempt *hammer.DeliveryAttempt) error

Store provides a mock function with given fields: ctx, deliveryAttempt

type DeliveryAttemptService

type DeliveryAttemptService struct {
	mock.Mock
}

DeliveryAttemptService is an autogenerated mock type for the DeliveryAttemptService type

func (*DeliveryAttemptService) Find

Find provides a mock function with given fields: ctx, id

func (*DeliveryAttemptService) FindAll

FindAll provides a mock function with given fields: ctx, findOptions

type DeliveryRepository

type DeliveryRepository struct {
	mock.Mock
}

DeliveryRepository is an autogenerated mock type for the DeliveryRepository type

func (*DeliveryRepository) Dispatch added in v0.6.0

Dispatch provides a mock function with given fields: ctx

func (*DeliveryRepository) Find

Find provides a mock function with given fields: ctx, id

func (*DeliveryRepository) FindAll

func (_m *DeliveryRepository) FindAll(ctx context.Context, findOptions hammer.FindOptions) ([]*hammer.Delivery, error)

FindAll provides a mock function with given fields: ctx, findOptions

func (*DeliveryRepository) Store

func (_m *DeliveryRepository) Store(ctx context.Context, delivery *hammer.Delivery) error

Store provides a mock function with given fields: ctx, delivery

type DeliveryService

type DeliveryService struct {
	mock.Mock
}

DeliveryService is an autogenerated mock type for the DeliveryService type

func (*DeliveryService) Find

func (_m *DeliveryService) Find(ctx context.Context, id string) (*hammer.Delivery, error)

Find provides a mock function with given fields: ctx, id

func (*DeliveryService) FindAll

func (_m *DeliveryService) FindAll(ctx context.Context, findOptions hammer.FindOptions) ([]*hammer.Delivery, error)

FindAll provides a mock function with given fields: ctx, findOptions

type HammerClient added in v0.6.0

type HammerClient struct {
	mock.Mock
}

HammerClient is an autogenerated mock type for the HammerClient type

func (*HammerClient) CreateMessage added in v0.6.0

func (_m *HammerClient) CreateMessage(ctx context.Context, in *api.CreateMessageRequest, opts ...grpc.CallOption) (*api.Message, error)

CreateMessage provides a mock function with given fields: ctx, in, opts

func (*HammerClient) CreateSubscription added in v0.6.0

func (_m *HammerClient) CreateSubscription(ctx context.Context, in *api.CreateSubscriptionRequest, opts ...grpc.CallOption) (*api.Subscription, error)

CreateSubscription provides a mock function with given fields: ctx, in, opts

func (*HammerClient) CreateTopic added in v0.6.0

func (_m *HammerClient) CreateTopic(ctx context.Context, in *api.CreateTopicRequest, opts ...grpc.CallOption) (*api.Topic, error)

CreateTopic provides a mock function with given fields: ctx, in, opts

func (*HammerClient) DeleteMessage added in v0.6.0

func (_m *HammerClient) DeleteMessage(ctx context.Context, in *api.DeleteMessageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)

DeleteMessage provides a mock function with given fields: ctx, in, opts

func (*HammerClient) DeleteSubscription added in v0.6.0

func (_m *HammerClient) DeleteSubscription(ctx context.Context, in *api.DeleteSubscriptionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)

DeleteSubscription provides a mock function with given fields: ctx, in, opts

func (*HammerClient) DeleteTopic added in v0.6.0

func (_m *HammerClient) DeleteTopic(ctx context.Context, in *api.DeleteTopicRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)

DeleteTopic provides a mock function with given fields: ctx, in, opts

func (*HammerClient) GetDelivery added in v0.6.0

func (_m *HammerClient) GetDelivery(ctx context.Context, in *api.GetDeliveryRequest, opts ...grpc.CallOption) (*api.Delivery, error)

GetDelivery provides a mock function with given fields: ctx, in, opts

func (*HammerClient) GetDeliveryAttempt added in v0.6.0

func (_m *HammerClient) GetDeliveryAttempt(ctx context.Context, in *api.GetDeliveryAttemptRequest, opts ...grpc.CallOption) (*api.DeliveryAttempt, error)

GetDeliveryAttempt provides a mock function with given fields: ctx, in, opts

func (*HammerClient) GetMessage added in v0.6.0

func (_m *HammerClient) GetMessage(ctx context.Context, in *api.GetMessageRequest, opts ...grpc.CallOption) (*api.Message, error)

GetMessage provides a mock function with given fields: ctx, in, opts

func (*HammerClient) GetSubscription added in v0.6.0

func (_m *HammerClient) GetSubscription(ctx context.Context, in *api.GetSubscriptionRequest, opts ...grpc.CallOption) (*api.Subscription, error)

GetSubscription provides a mock function with given fields: ctx, in, opts

func (*HammerClient) GetTopic added in v0.6.0

func (_m *HammerClient) GetTopic(ctx context.Context, in *api.GetTopicRequest, opts ...grpc.CallOption) (*api.Topic, error)

GetTopic provides a mock function with given fields: ctx, in, opts

func (*HammerClient) ListDeliveries added in v0.6.0

ListDeliveries provides a mock function with given fields: ctx, in, opts

func (*HammerClient) ListDeliveryAttempts added in v0.6.0

ListDeliveryAttempts provides a mock function with given fields: ctx, in, opts

func (*HammerClient) ListMessages added in v0.6.0

ListMessages provides a mock function with given fields: ctx, in, opts

func (*HammerClient) ListSubscriptions added in v0.6.0

ListSubscriptions provides a mock function with given fields: ctx, in, opts

func (*HammerClient) ListTopics added in v0.6.0

ListTopics provides a mock function with given fields: ctx, in, opts

func (*HammerClient) UpdateSubscription added in v0.6.0

func (_m *HammerClient) UpdateSubscription(ctx context.Context, in *api.UpdateSubscriptionRequest, opts ...grpc.CallOption) (*api.Subscription, error)

UpdateSubscription provides a mock function with given fields: ctx, in, opts

func (*HammerClient) UpdateTopic added in v0.6.0

func (_m *HammerClient) UpdateTopic(ctx context.Context, in *api.UpdateTopicRequest, opts ...grpc.CallOption) (*api.Topic, error)

UpdateTopic provides a mock function with given fields: ctx, in, opts

type HammerServer added in v0.6.0

type HammerServer struct {
	mock.Mock
}

HammerServer is an autogenerated mock type for the HammerServer type

func (*HammerServer) CreateMessage added in v0.6.0

func (_m *HammerServer) CreateMessage(_a0 context.Context, _a1 *api.CreateMessageRequest) (*api.Message, error)

CreateMessage provides a mock function with given fields: _a0, _a1

func (*HammerServer) CreateSubscription added in v0.6.0

func (_m *HammerServer) CreateSubscription(_a0 context.Context, _a1 *api.CreateSubscriptionRequest) (*api.Subscription, error)

CreateSubscription provides a mock function with given fields: _a0, _a1

func (*HammerServer) CreateTopic added in v0.6.0

func (_m *HammerServer) CreateTopic(_a0 context.Context, _a1 *api.CreateTopicRequest) (*api.Topic, error)

CreateTopic provides a mock function with given fields: _a0, _a1

func (*HammerServer) DeleteMessage added in v0.6.0

func (_m *HammerServer) DeleteMessage(_a0 context.Context, _a1 *api.DeleteMessageRequest) (*emptypb.Empty, error)

DeleteMessage provides a mock function with given fields: _a0, _a1

func (*HammerServer) DeleteSubscription added in v0.6.0

func (_m *HammerServer) DeleteSubscription(_a0 context.Context, _a1 *api.DeleteSubscriptionRequest) (*emptypb.Empty, error)

DeleteSubscription provides a mock function with given fields: _a0, _a1

func (*HammerServer) DeleteTopic added in v0.6.0

func (_m *HammerServer) DeleteTopic(_a0 context.Context, _a1 *api.DeleteTopicRequest) (*emptypb.Empty, error)

DeleteTopic provides a mock function with given fields: _a0, _a1

func (*HammerServer) GetDelivery added in v0.6.0

func (_m *HammerServer) GetDelivery(_a0 context.Context, _a1 *api.GetDeliveryRequest) (*api.Delivery, error)

GetDelivery provides a mock function with given fields: _a0, _a1

func (*HammerServer) GetDeliveryAttempt added in v0.6.0

func (_m *HammerServer) GetDeliveryAttempt(_a0 context.Context, _a1 *api.GetDeliveryAttemptRequest) (*api.DeliveryAttempt, error)

GetDeliveryAttempt provides a mock function with given fields: _a0, _a1

func (*HammerServer) GetMessage added in v0.6.0

func (_m *HammerServer) GetMessage(_a0 context.Context, _a1 *api.GetMessageRequest) (*api.Message, error)

GetMessage provides a mock function with given fields: _a0, _a1

func (*HammerServer) GetSubscription added in v0.6.0

func (_m *HammerServer) GetSubscription(_a0 context.Context, _a1 *api.GetSubscriptionRequest) (*api.Subscription, error)

GetSubscription provides a mock function with given fields: _a0, _a1

func (*HammerServer) GetTopic added in v0.6.0

func (_m *HammerServer) GetTopic(_a0 context.Context, _a1 *api.GetTopicRequest) (*api.Topic, error)

GetTopic provides a mock function with given fields: _a0, _a1

func (*HammerServer) ListDeliveries added in v0.6.0

ListDeliveries provides a mock function with given fields: _a0, _a1

func (*HammerServer) ListDeliveryAttempts added in v0.6.0

ListDeliveryAttempts provides a mock function with given fields: _a0, _a1

func (*HammerServer) ListMessages added in v0.6.0

ListMessages provides a mock function with given fields: _a0, _a1

func (*HammerServer) ListSubscriptions added in v0.6.0

ListSubscriptions provides a mock function with given fields: _a0, _a1

func (*HammerServer) ListTopics added in v0.6.0

ListTopics provides a mock function with given fields: _a0, _a1

func (*HammerServer) UpdateSubscription added in v0.6.0

func (_m *HammerServer) UpdateSubscription(_a0 context.Context, _a1 *api.UpdateSubscriptionRequest) (*api.Subscription, error)

UpdateSubscription provides a mock function with given fields: _a0, _a1

func (*HammerServer) UpdateTopic added in v0.6.0

func (_m *HammerServer) UpdateTopic(_a0 context.Context, _a1 *api.UpdateTopicRequest) (*api.Topic, error)

UpdateTopic provides a mock function with given fields: _a0, _a1

type MessageRepository

type MessageRepository struct {
	mock.Mock
}

MessageRepository is an autogenerated mock type for the MessageRepository type

func (*MessageRepository) Delete

func (_m *MessageRepository) Delete(ctx context.Context, id string) error

Delete provides a mock function with given fields: ctx, id

func (*MessageRepository) Find

func (_m *MessageRepository) Find(ctx context.Context, id string) (*hammer.Message, error)

Find provides a mock function with given fields: ctx, id

func (*MessageRepository) FindAll

func (_m *MessageRepository) FindAll(ctx context.Context, findOptions hammer.FindOptions) ([]*hammer.Message, error)

FindAll provides a mock function with given fields: ctx, findOptions

func (*MessageRepository) Store

func (_m *MessageRepository) Store(ctx context.Context, message *hammer.Message) error

Store provides a mock function with given fields: ctx, message

type MessageService

type MessageService struct {
	mock.Mock
}

MessageService is an autogenerated mock type for the MessageService type

func (*MessageService) Create

func (_m *MessageService) Create(ctx context.Context, message *hammer.Message) error

Create provides a mock function with given fields: ctx, message

func (*MessageService) Delete

func (_m *MessageService) Delete(ctx context.Context, id string) error

Delete provides a mock function with given fields: ctx, id

func (*MessageService) Find

func (_m *MessageService) Find(ctx context.Context, id string) (*hammer.Message, error)

Find provides a mock function with given fields: ctx, id

func (*MessageService) FindAll

func (_m *MessageService) FindAll(ctx context.Context, findOptions hammer.FindOptions) ([]*hammer.Message, error)

FindAll provides a mock function with given fields: ctx, findOptions

type MigrationRepository

type MigrationRepository struct {
	mock.Mock
}

MigrationRepository is an autogenerated mock type for the MigrationRepository type

func (*MigrationRepository) Run

Run provides a mock function with given fields: ctx

type MigrationService added in v0.6.0

type MigrationService struct {
	mock.Mock
}

MigrationService is an autogenerated mock type for the MigrationService type

func (*MigrationService) Run added in v0.6.0

func (_m *MigrationService) Run(ctx context.Context) error

Run provides a mock function with given fields: ctx

type SubscriptionRepository

type SubscriptionRepository struct {
	mock.Mock
}

SubscriptionRepository is an autogenerated mock type for the SubscriptionRepository type

func (*SubscriptionRepository) Delete

func (_m *SubscriptionRepository) Delete(ctx context.Context, id string) error

Delete provides a mock function with given fields: ctx, id

func (*SubscriptionRepository) Find

Find provides a mock function with given fields: ctx, id

func (*SubscriptionRepository) FindAll

func (_m *SubscriptionRepository) FindAll(ctx context.Context, findOptions hammer.FindOptions) ([]*hammer.Subscription, error)

FindAll provides a mock function with given fields: ctx, findOptions

func (*SubscriptionRepository) Store

func (_m *SubscriptionRepository) Store(ctx context.Context, subscription *hammer.Subscription) error

Store provides a mock function with given fields: ctx, subscription

type SubscriptionService

type SubscriptionService struct {
	mock.Mock
}

SubscriptionService is an autogenerated mock type for the SubscriptionService type

func (*SubscriptionService) Create

func (_m *SubscriptionService) Create(ctx context.Context, subscription *hammer.Subscription) error

Create provides a mock function with given fields: ctx, subscription

func (*SubscriptionService) Delete

func (_m *SubscriptionService) Delete(ctx context.Context, id string) error

Delete provides a mock function with given fields: ctx, id

func (*SubscriptionService) Find

Find provides a mock function with given fields: ctx, id

func (*SubscriptionService) FindAll

func (_m *SubscriptionService) FindAll(ctx context.Context, findOptions hammer.FindOptions) ([]*hammer.Subscription, error)

FindAll provides a mock function with given fields: ctx, findOptions

func (*SubscriptionService) Update

func (_m *SubscriptionService) Update(ctx context.Context, subscription *hammer.Subscription) error

Update provides a mock function with given fields: ctx, subscription

type TopicRepository

type TopicRepository struct {
	mock.Mock
}

TopicRepository is an autogenerated mock type for the TopicRepository type

func (*TopicRepository) Delete

func (_m *TopicRepository) Delete(ctx context.Context, id string) error

Delete provides a mock function with given fields: ctx, id

func (*TopicRepository) Find

func (_m *TopicRepository) Find(ctx context.Context, id string) (*hammer.Topic, error)

Find provides a mock function with given fields: ctx, id

func (*TopicRepository) FindAll

func (_m *TopicRepository) FindAll(ctx context.Context, findOptions hammer.FindOptions) ([]*hammer.Topic, error)

FindAll provides a mock function with given fields: ctx, findOptions

func (*TopicRepository) Store

func (_m *TopicRepository) Store(ctx context.Context, topic *hammer.Topic) error

Store provides a mock function with given fields: ctx, topic

type TopicService

type TopicService struct {
	mock.Mock
}

TopicService is an autogenerated mock type for the TopicService type

func (*TopicService) Create

func (_m *TopicService) Create(ctx context.Context, topic *hammer.Topic) error

Create provides a mock function with given fields: ctx, topic

func (*TopicService) Delete

func (_m *TopicService) Delete(ctx context.Context, id string) error

Delete provides a mock function with given fields: ctx, id

func (*TopicService) Find

func (_m *TopicService) Find(ctx context.Context, id string) (*hammer.Topic, error)

Find provides a mock function with given fields: ctx, id

func (*TopicService) FindAll

func (_m *TopicService) FindAll(ctx context.Context, findOptions hammer.FindOptions) ([]*hammer.Topic, error)

FindAll provides a mock function with given fields: ctx, findOptions

func (*TopicService) Update

func (_m *TopicService) Update(ctx context.Context, topic *hammer.Topic) error

Update provides a mock function with given fields: ctx, topic

type WorkerService added in v0.6.0

type WorkerService struct {
	mock.Mock
}

WorkerService is an autogenerated mock type for the WorkerService type

func (*WorkerService) Run added in v0.6.0

func (_m *WorkerService) Run(ctx context.Context)

Run provides a mock function with given fields: ctx

func (*WorkerService) Stop added in v0.6.0

func (_m *WorkerService) Stop(ctx context.Context)

Stop provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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