Documentation
¶
Index ¶
- Variables
- func ClearWorkCassandra(query string, params []any, key *string) error
- func ClearWorkCentauri(channel string, key *string) error
- func ClearWorkMongo(db, collection string, query string, key *string) error
- func ClearWorkMysql(query string, params []any, key *string) error
- func ClearWorkPsql(query string, params []any, key *string) error
- func CreateAWSSession(region, roleArn string) (*session.Session, *aws.Config, error)
- func CreateCassandraClient(hosts []string, user string, pass string, consistency string, keyspace string) error
- func CreateCentariClient(url string, privateKey []byte) error
- func CreateGCPPubSubClient(projectID string) error
- func CreateMongoClient(host string, port int, user string, pass string, db string) error
- func CreateMySqlClient(host string, port int, user string, pass string, db string) error
- func CreatePsqlClient(host string, port int, user, pass, db, sslMode string) error
- func CreateRabbitMQClient(url string) error
- func CreateRedisClient(host, port, password string) error
- func CreateSQSClient(region, roleArn string) (*sqs.SQS, error)
- func DeleteMessageSQS() error
- func GetWorkCassandra(query string, params []any, queryKey *bool) (*string, *string, error)
- func GetWorkCentauri(channel string) (*string, *string, error)
- func GetWorkMongo(db, collection, query string) (*string, *string, error)
- func GetWorkMysql(query string, params []any, queryKey *bool) (*string, *string, error)
- func GetWorkPsql(query string, params []any, queryKey *bool) (*string, *string, error)
- func HandleFailureCassandra(query string, params []any, key *string) error
- func HandleFailureCentauri(channel string, key *string) error
- func HandleFailureMongo(db, collection string, query string, key *string) error
- func HandleFailureMysql(query string, params []any, key *string) error
- func HandleFailurePsql(query string, params []any, key *string) error
- func ReceiveMessageGCPPubSub(subName string) (*pubsub.Message, error)
- func ReceiveMessageRabbitMQ() (*amqp.Delivery, error)
- func ReceiveMessageRedisList(queue string) (string, error)
- func ReceiveMessageRedisSubscription(channel string) (string, error)
- func ReceiveMessageSQS() (*sqs.Message, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RabbitMQClient *amqp.Connection RabbitMQQueue string )
View Source
var ( SQSClient *sqs.SQS SQSQueueURL string SQSReceiptHandle string )
View Source
var (
CassandraClient *gocql.Session
)
View Source
var (
GCPPubSubClient *pubsub.Client
)
View Source
var (
MongoClient *mongo.Client
)
View Source
var (
MysqlClient *sql.DB
)
View Source
var (
PsqlClient *sql.DB
)
View Source
var (
RedisClient *redis.Client
)
Functions ¶
func ClearWorkCentauri ¶
func CreateAWSSession ¶
CreateAWSSession will connect to AWS with the account's credentials from vault
func CreateCassandraClient ¶
func CreateCentariClient ¶
func CreateGCPPubSubClient ¶
func CreateMongoClient ¶
func CreateMySqlClient ¶
func CreatePsqlClient ¶
func CreateRabbitMQClient ¶
func CreateRedisClient ¶
func DeleteMessageSQS ¶
func DeleteMessageSQS() error
DeleteMessage deletes a message from the queue
func GetWorkCassandra ¶
func GetWorkMysql ¶
func GetWorkPsql ¶
func HandleFailureCassandra ¶
func HandleFailureCentauri ¶
func HandleFailureMongo ¶
func ReceiveMessageGCPPubSub ¶
func ReceiveMessageRabbitMQ ¶
func ReceiveMessageRedisList ¶
func ReceiveMessageSQS ¶
ReceiveMessage receives a single message from the queue
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.