sqs

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

README

Kubemq sqs source Connector

Kubemq aws-sqs source connector allows services using kubemq server to access aws sqs service.

Prerequisites

The following required to run the aws-sqs source connector:

  • kubemq cluster
  • aws account with sqs active service
  • kubemq-source deployment

Configuration

sqs source connector configuration properties:

Properties Key Required Description Example
aws_key yes aws key aws key supplied by aws
aws_secret_key yes aws secret key aws secret key supplied by aws
region yes region aws region
retries no number of retries on send 1 (default 0)
token no aws token ("default" empty string "my token"
queue yes queue name "my_queue_name"
max_number_of_messages no max messages receive per call "1" (default 1)
visibility_timeout no message visibility timeout (milliseconds) "1" (default 0)
pullDelay no wait time between calls (milliseconds) "1" (default 5)

Example:

bindings:
  - name: kubemq-query-aws-sqs
    source:
      kind: query
      name: kubemq-query
      properties:
        address: "kubemq-cluster:50000"
        client_id: "kubemq-query-activemq-sqs"
        auth_token: ""
        channel: "query.aws.sqs"
        group:   ""
        auto_reconnect: "true"
        reconnect_interval_seconds: "1"
        max_reconnects: "0"
    target:
      kind: aws.sqs
      name: aws-sqs
      properties:
        aws_key: "id"
        aws_secret_key: 'json'
        region:  "instance"
        queue : "my_queue"

Documentation

Index

Constants

View Source
const (
	DefaultMaxNumberOfMessages = 1
	DefaultWaitTimeSeconds     = 0
	DefaultVisibilityTimeout   = 0
	DefaultToken               = ""
	DefaultWaitBetweenPull     = 5
)

Variables

This section is empty.

Functions

func Connector

func Connector() *common.Connector

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New() *Client

func (*Client) Connector

func (c *Client) Connector() *common.Connector

func (*Client) Init

func (c *Client) Init(ctx context.Context, cfg config.Spec, log *logger.Logger) error

func (*Client) Start

func (c *Client) Start(ctx context.Context, target middleware.Middleware) error

func (*Client) Stop

func (c *Client) Stop() error

Jump to

Keyboard shortcuts

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