modulepackage
1.0.5
Repository: https://github.com/tankyouoss/pubsubwrapper.git
Documentation: pkg.go.dev
# README
pubSubWrapper
Wrap google pubsub golang client implementation to an interface so it can be mocked.
This wrapper is inspired by https://github.com/googleapis/google-cloud-go-testing/tree/master/pubsub/psiface adapted to feet usage in TankYou projects.
Why
- Implement a mock using testify/mock
- Add methods to interface which where not initialy supported by googleapis project
# Functions
AdaptClient adapts a pubsub.Client so that it satisfies the Client interface.
AdaptMessage adapts a pubsub.Message so that it satisfies the Message interface.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
Client mock.
message.
publish result.
No description provided by the author
subscription.
Topic mock.
# Interfaces
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author