Documentation
¶
Index ¶
- type Driver
- type DriverAWS
- type DriverCassandra
- type DriverCentauri
- type DriverGCP
- type DriverMongo
- type DriverMysql
- type DriverName
- type DriverPsql
- type DriverRabbitMQ
- type DriverRedis
- type ProcX
- func (q *ProcX) ClearWorkCassandra() error
- func (j *ProcX) ClearWorkFromDriver() error
- func (q *ProcX) ClearWorkMongo() error
- func (q *ProcX) ClearWorkMysql() error
- func (j *ProcX) DoWork() error
- func (j *ProcX) Exec(stdout, stderr io.Writer) error
- func (q *ProcX) GetWorkCassandra() (*string, error)
- func (j *ProcX) GetWorkFromDriver() (*string, error)
- func (q *ProcX) GetWorkMongo() (*string, error)
- func (q *ProcX) GetWorkMysql() (*string, error)
- func (j *ProcX) HandleFailure() error
- func (q *ProcX) HandleFailureCassandra() error
- func (q *ProcX) HandleFailureMongo() error
- func (q *ProcX) HandleFailureMysql() error
- func (j *ProcX) InitAWSSQS() error
- func (j *ProcX) InitCassandra() error
- func (j *ProcX) InitCentauri() error
- func (j *ProcX) InitDriver() error
- func (j *ProcX) InitGCPPubSub() error
- func (j *ProcX) InitMongo() error
- func (j *ProcX) InitMysql() error
- func (j *ProcX) InitPsql() error
- func (j *ProcX) InitRabbitMQ() error
- func (j *ProcX) InitRedis() error
- func (j *ProcX) ParseArgs(args []string)
- type SqlQuery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver struct {
Name DriverName `json:"name"`
AWS *DriverAWS `json:"aws"`
Cassandra *DriverCassandra `json:"cassandra"`
Centauri *DriverCentauri `json:"centauri"`
GCP *DriverGCP `json:"gcp"`
Psql *DriverPsql `json:"psql"`
Mongo *DriverMongo `json:"mongo"`
Mysql *DriverMysql `json:"mysql"`
RabbitMQ *DriverRabbitMQ `json:"rabbitmq"`
Redis *DriverRedis `json:"redis"`
}
type DriverCassandra ¶
type DriverCassandra struct {
Hosts []string `json:"hosts"`
User string `json:"user"`
Password string `json:"password"`
Keyspace string `json:"keyspace"`
Consistency string `json:"consistency"`
QueryReturnsKey *bool `json:"queryReturnsKey"`
RetrieveQuery *SqlQuery `json:"retrieveQuery"`
FailureQuery *SqlQuery `json:"failureQuery"`
ClearQuery *SqlQuery `json:"clearQuery"`
Key *string `json:"key"`
}
type DriverCentauri ¶
type DriverMongo ¶
type DriverMongo struct {
Host string `json:"host"`
Port int `json:"port"`
User string `json:"user"`
Password string `json:"password"`
DBName string `json:"dbName"`
Collection string `json:"collection"`
RetrieveQuery *string `json:"retrieveQuery"`
FailureQuery *string `json:"failureQuery"`
ClearQuery *string `json:"clearQuery"`
Key *string `json:"key"`
}
type DriverMysql ¶
type DriverMysql struct {
Host string `json:"host"`
Port int `json:"port"`
User string `json:"user"`
Password string `json:"password"`
DBName string `json:"dbName"`
QueryReturnsKey *bool `json:"queryReturnsKey"`
RetrieveQuery *SqlQuery `json:"retrieveQuery"`
FailureQuery *SqlQuery `json:"failureQuery"`
ClearQuery *SqlQuery `json:"clearQuery"`
Key *string `json:"key"`
}
type DriverName ¶
type DriverName string
var ( DriverAWSSQS DriverName = "aws-sqs" 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") )
type DriverPsql ¶
type DriverPsql struct {
Host string `json:"host"`
Port int `json:"port"`
User string `json:"user"`
Password string `json:"password"`
DBName string `json:"dbName"`
SSLMode string `json:"sslMode"`
QueryReturnsKey *bool `json:"queryReturnsKey"`
RetrieveQuery *SqlQuery `json:"retrieveQuery"`
FailureQuery *SqlQuery `json:"failureQuery"`
ClearQuery *SqlQuery `json:"clearQuery"`
Key *string `json:"key"`
}
type DriverRabbitMQ ¶
type DriverRedis ¶
type ProcX ¶
type ProcX struct {
DriverName DriverName `json:"driverName"`
Driver *Driver `json:"driver"`
PassWorkAsArg bool `json:"passWorkAsArg"`
HostEnv bool `json:"hostEnv"`
Bin string `json:"bin"`
Args []string `json:"args"`
// contains filtered or unexported fields
}
func (*ProcX) ClearWorkCassandra ¶
func (*ProcX) ClearWorkFromDriver ¶
func (*ProcX) ClearWorkMongo ¶
func (*ProcX) ClearWorkMysql ¶
func (*ProcX) Exec ¶
Exec will execute the given script, streaming the output to the provided io.Writers. If the script exits with a non-zero exit code, an error will be returned. If the script exits with a zero exit code, no error will be returned.
func (*ProcX) GetWorkCassandra ¶
func (*ProcX) GetWorkFromDriver ¶
func (*ProcX) GetWorkMongo ¶
func (*ProcX) GetWorkMysql ¶
func (*ProcX) HandleFailure ¶
func (*ProcX) HandleFailureCassandra ¶
func (*ProcX) HandleFailureMongo ¶
func (*ProcX) HandleFailureMysql ¶
func (*ProcX) InitAWSSQS ¶
func (*ProcX) InitCassandra ¶
func (*ProcX) InitCentauri ¶
func (*ProcX) InitDriver ¶
func (*ProcX) InitGCPPubSub ¶
func (*ProcX) InitRabbitMQ ¶
Click to show internal directories.
Click to hide internal directories.