qrcodegenerator

package
v3.30.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 11 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.

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, conf *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 (qrg *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.

Jump to

Keyboard shortcuts

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