Documentation ¶
Overview ¶
Package drivers encapsulates all the drivers required under a single easy to use interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidDriver error ErrInvalidDriver = errors.New("driver: Invalid driver specified") // ErrInvalidConfigSignature error ErrInvalidConfigSignature = errors.New("driver: Invalid config signature for specifie driver") )
Functions ¶
This section is empty.
Types ¶
type SubscriberClient ¶
type SubscriberClient interface { // Subscribe method subscribes to the specified topic // and returns the gocloud pubsub Subscription Subscribe(context.Context, string) (*pubsub.Subscription, error) Close(context.Context) error }
SubscriberClient connects to the specific pubsub vendor using specific drivers, it also hides the specific driver implementation for subscribing to topics And gives a single interface for all driver types.
Click to show internal directories.
Click to hide internal directories.