client

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: MIT Imports: 26 Imported by: 0

Documentation

Index

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 ClearWorkCassandra added in v0.0.14

func ClearWorkCassandra(query string, params []any, key *string) error

func ClearWorkCentauri added in v0.0.13

func ClearWorkCentauri(channel string, key *string) error

func ClearWorkMongo added in v0.0.12

func ClearWorkMongo(db, collection string, query string, key *string) error

func ClearWorkMysql added in v0.0.11

func ClearWorkMysql(query string, params []any, key *string) error

func ClearWorkPsql added in v0.0.10

func ClearWorkPsql(query string, params []any, key *string) error

func CreateAWSSession

func CreateAWSSession(region, roleArn string) (*session.Session, *aws.Config, error)

CreateAWSSession will connect to AWS with the account's credentials from vault

func CreateCassandraClient added in v0.0.14

func CreateCassandraClient(hosts []string, user string, pass string, consistency string, keyspace string) error

func CreateCentariClient added in v0.0.13

func CreateCentariClient(url string, privateKey []byte) error

func CreateGCPPubSubClient added in v0.0.6

func CreateGCPPubSubClient(projectID string) error

func CreateMongoClient added in v0.0.12

func CreateMongoClient(host string, port int, user string, pass string, db string) error

func CreateMySqlClient added in v0.0.11

func CreateMySqlClient(host string, port int, user string, pass string, db string) error

func CreatePsqlClient added in v0.0.10

func CreatePsqlClient(host string, port int, user, pass, db, sslMode string) error

func CreateRabbitMQClient

func CreateRabbitMQClient(url string) error

func CreateRedisClient added in v0.0.6

func CreateRedisClient(host, port, password string) error

func CreateSQSClient

func CreateSQSClient(region, roleArn string) (*sqs.SQS, error)

func DeleteMessageSQS

func DeleteMessageSQS() error

DeleteMessage deletes a message from the queue

func GetWorkCassandra added in v0.0.14

func GetWorkCassandra(query string, params []any, queryKey *bool) (*string, *string, error)

func GetWorkCentauri added in v0.0.13

func GetWorkCentauri(channel string) (*string, *string, error)

func GetWorkMongo added in v0.0.12

func GetWorkMongo(db, collection, query string) (*string, *string, error)

func GetWorkMysql added in v0.0.11

func GetWorkMysql(query string, params []any, queryKey *bool) (*string, *string, error)

func GetWorkPsql added in v0.0.10

func GetWorkPsql(query string, params []any, queryKey *bool) (*string, *string, error)

func HandleFailureCassandra added in v0.0.14

func HandleFailureCassandra(query string, params []any, key *string) error

func HandleFailureCentauri added in v0.0.13

func HandleFailureCentauri(channel string, key *string) error

func HandleFailureMongo added in v0.0.12

func HandleFailureMongo(db, collection string, query string, key *string) error

func HandleFailureMysql added in v0.0.11

func HandleFailureMysql(query string, params []any, key *string) error

func HandleFailurePsql added in v0.0.10

func HandleFailurePsql(query string, params []any, key *string) error

func ReceiveMessageGCPPubSub added in v0.0.6

func ReceiveMessageGCPPubSub(subName string) (*pubsub.Message, error)

func ReceiveMessageRabbitMQ

func ReceiveMessageRabbitMQ() (*amqp.Delivery, error)

func ReceiveMessageRedisList added in v0.0.6

func ReceiveMessageRedisList(queue string) (string, error)

func ReceiveMessageRedisSubscription added in v0.0.6

func ReceiveMessageRedisSubscription(channel string) (string, error)

func ReceiveMessageSQS

func ReceiveMessageSQS() (*sqs.Message, error)

ReceiveMessage receives a single message from the queue

Types

This section is empty.

Jump to

Keyboard shortcuts

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