benthosqrcode

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2025 License: MIT Imports: 7 Imported by: 0

README

Benthos plugin: QR Code

GitHub Workflow Status GitHub go.mod Go version OpenSSF Scorecard

Usage

Create a custom Benthos binary:

package main

import (
	"context"

	"github.com/redpanda-data/benthos/v4/public/service"

	_ "github.com/sagikazarmark/benthos-qrcode"
)

func main() {
	service.RunCLI(context.Background())
}

[!TIP] Read more about Benthos plugins here.

Use the plugin in your Benthos configuration:

input:
  generate:
    count: 1
    mapping: |
      root = "hello"

pipeline:
  processors:
    - qrcode:
        format: png

output:
  file:
    path: out.png
    codec: all-bytes

Development

For an optimal developer experience, it is recommended to install Nix and direnv.

go test -v ./...

License

The project is licensed under the MIT License.

Documentation

Overview

Package benthosqrcode provides a processor for Benthos that generates QR codes from message content.

Jump to

Keyboard shortcuts

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