package
1.6.2
Repository: https://github.com/kubemq-io/kubemq-sources.git
Documentation: pkg.go.dev

# README

Kubemq nats source Connector

Kubemq nats source connector allows services using kubemq server to access nats messaging services.

Prerequisites

The following are required to run the nats source connector:

  • kubemq cluster
  • nats server
  • kubemq-sources deployment

Configuration

nats source connector configuration properties:

Properties KeyRequiredDescriptionExample
urlyesnats connection host"localhost:1883"
subjectyesset subject nameany string
dynamic_mappingyesset if to map nats Destination to kubemq channel"true"
usernamenoset nats username"username"
passwordnoset nats password"password"
tokennoset nats token"my_token"
tlsnoset if tls is needed"false","true"
cert_filenotls certificate file in string format"my_file"
cert_keynotls certificate key in string format"my_key"
timeoutnoconnection timeout in seconds"130"

Example:

bindings:
  - name: nats
    source:
      kind: messaging.nats
      properties:
        cert_file: |-
          -----BEGIN CERTIFICATE-----
          mycert
          -----END CERTIFICATE-----
        cert_key: |-
          -----BEGIN PRIVATE KEY-----
          mykey
          -----END PRIVATE KEY-----
        dynamic_mapping: "false"
        subject: foo
        url: nats://localhost:4222
    target:
      kind: kubemq.events
      properties:
        address: localhost:50000
        channel: event.messaging.nats
        dynamic_mapping: "false"
    properties: {}

# Functions

No description provided by the author
No description provided by the author

# Structs

No description provided by the author