{"repo":"sftpgo/sftpgo-plugin-pubsub","free":true,"listed":false,"github":"https://github.com/sftpgo/sftpgo-plugin-pubsub","clone":"git clone https://github.com/sftpgo/sftpgo-plugin-pubsub.git","description":"Publish/Subscribe systems integration for SFTPGo","language":"Go","stars":12,"topics":["message-queue","rabbitmq","kafka","nats","google-pubsub","aws-sns","aws-sqs","azure-service-bus"],"license":"AGPL-3.0","category":"data-pipelines","readme_excerpt":"SFTPGo Pub/Sub plugin This plugin allows to send SFTPGo filesystem and provider events to publish/subscribe systems. It is not meant to react to pre- events. It simply forwards the configured events to an external pub/sub system. Configuration The supported services can be configured within the plugins section of the SFTPGo configuration file: you have to set the service publish URL as first plugin argument. You can also set an, optional, instance id by passing a second argument. The instance id is useful if you are receiving notifications from multiple SFTPGo instances and want to identify where the events are coming from. This is an example configuration. With the above example the plugin is configured to connect to RabbitMQ and publish messages to the sftpgo fanout exchange. The RabbitMQ’s server is discovered from the RABBIT SERVER URL environment variable (which is something like amqp://guest:guest@localhost:5672/ ). The plugin will not start if it fails to connect to the configured service, this will prevent SFTPGo from starting. The plugin will panic if an error occurs while publishing an event, for example because the service connection is lost. SFTPGo will automatically restart it and you can configure SFTPGo to retry failed events until they are older than a configurable time (60 seconds in the above example). This way no event is lost. Notifications format The filesystem events will contain a JSON serialized struct in the message body with the following fields: - t","default_branch":null,"files":null,"tree":[],"storefront":"/r/sftpgo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sftpgo/sftpgo-plugin-pubsub/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}