drivers

package
v0.0.0-...-c63310e Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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