func (qrg *QRCodeGenerator) Context() context.Context {
	return qrg.ctx
}
Context returns the context of the QR Code Generator.
package qrcodegenerator
import (
	"context"
	"github.com/grpc-ecosystem/grpc-gateway/runtime"
	"go.thethings.network/lorawan-stack/v3/pkg/component"
	"go.thethings.network/lorawan-stack/v3/pkg/errors"
	"go.thethings.network/lorawan-stack/v3/pkg/log"
	"go.thethings.network/lorawan-stack/v3/pkg/ttnpb"
	"google.golang.org/grpc"
)
type QRCodeGenerator struct {
	*component.Component
	ctx context.Context
	grpc struct {
		endDeviceQRCodeGenerator *endDeviceQRCodeGeneratorServer
	}
}
var errFormatNotFound = errors.DefineNotFound("format_not_found", "format `{id}` not found")
func New(c *component.Component, conf *Config) (*QRCodeGenerator, error) {
	qrg := &QRCodeGenerator{
		Component: c,
		ctx:       log.NewContextWithField(c.Context(), "namespace", "qrcodegenerator"),
	}
	qrg.grpc.endDeviceQRCodeGenerator = &endDeviceQRCodeGeneratorServer{QRG: qrg}
	c.RegisterGRPC(qrg)
	return qrg, nil
}