qrcodegenerator

package
v3.33.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package qrcodegenerator provides QR code generation services.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct{}

Config represents the QRCodeGenerator configuration.

type Option added in v3.19.1

type Option func(*QRCodeGenerator)

Option configures QRCodeGenerator.

func WithEndDeviceFormat added in v3.19.1

func WithEndDeviceFormat(id string, f enddevices.Format) Option

WithEndDeviceFormat configures QRCodeGenerator with an EndDeviceFormat.

func WithGatewayFormat added in v3.32.1

func WithGatewayFormat(id string, f gateways.Format) Option

WithGatewayFormat configures QRCodeGenerator with a GatewayFormat.

type QRCodeGenerator

type QRCodeGenerator struct {
	*component.Component
	// contains filtered or unexported fields
}

QRCodeGenerator implements the QR Code Generator component.

The QR Code Generator exposes the EndDeviceQRCodeGenerator service.

func New

func New(c *component.Component, _ *Config, opts ...Option) (*QRCodeGenerator, error)

New returns a new *QRCodeGenerator.

func (*QRCodeGenerator) Context

func (qrg *QRCodeGenerator) Context() context.Context

Context returns the context of the QR Code Generator.

func (*QRCodeGenerator) RegisterHandlers

func (qrg *QRCodeGenerator) RegisterHandlers(s *runtime.ServeMux, conn *grpc.ClientConn)

RegisterHandlers registers gRPC handlers.

func (*QRCodeGenerator) RegisterServices

func (qrg *QRCodeGenerator) RegisterServices(s *grpc.Server)

RegisterServices registers services provided by qrg at s.

func (*QRCodeGenerator) Roles

func (*QRCodeGenerator) Roles() []ttnpb.ClusterRole

Roles returns the roles that the QR Code Generator fulfills.

Directories

Path Synopsis
Package qrcode provides generic interfaces to work with QR codes.
Package qrcode provides generic interfaces to work with QR codes.
gateways
Package gateways provides a QR code parser for gateways.
Package gateways provides a QR code parser for gateways.

Jump to

Keyboard shortcuts

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