Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver interface { LoadEnv(string) error LoadFlags() error Init() error GetWork() (*string, error) ClearWork() error HandleFailure() error }
Driver is the interface that must be implemented by a driver.
func GetDriver ¶
func GetDriver(name DriverName) Driver
GetDriver returns the driver with the given name.
type DriverName ¶
type DriverName string
DriverName is the unique name of a driver.
var ( DriverAWSSQS DriverName = "aws-sqs" DriverAWSDynamoDB DriverName = "aws-dynamo" DriverCassandraDB DriverName = "cassandra" DriverCentauriNet DriverName = "centauri" DriverGCPPubSub DriverName = "gcp-pubsub" DriverPostgres DriverName = "postgres" DriverMongoDB DriverName = "mongodb" DriverMySQL DriverName = "mysql" DriverRabbit DriverName = "rabbitmq" DriverRedisSubscription DriverName = "redis-pubsub" DriverRedisList DriverName = "redis-list" DriverLocal DriverName = "local" ErrDriverNotFound = errors.New("driver not found") )
Click to show internal directories.
Click to hide internal directories.