qrCode

package
v0.0.0-...-cf59f0d Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2020 License: MIT, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetQrText

func GetQrText(template string, idPrefix int, idMax int) string

func NewBuf

func NewBuf(qrRender *QrRender, qrConf QrBufConf) chan *QrData

func TimeTrack

func TimeTrack(start time.Time)

Types

type Circle

type Circle struct {
	// contains filtered or unexported fields
}

func (*Circle) At

func (c *Circle) At(x, y int) color.Color

func (*Circle) Bounds

func (c *Circle) Bounds() image.Rectangle

func (*Circle) ColorModel

func (c *Circle) ColorModel() color.Model

type QrBufConf

type QrBufConf struct {
	IdMax          int
	IdPrefix       int
	Lifetime       int64
	SizeBuffer     int
	NumberOfTreads int
	Template       string
}

type QrConf

type QrConf struct {
	ColorCenter string //"A0FF11"
	ColorEdge   string //"D1170F"
	//side        int
	LogoPath  string //"logo.png"
	PixRadius int
	Template  string
}

type QrData

type QrData struct {
	Id int
	//timeOfUsed int64
	QrBase64 []byte
}

type QrRender

type QrRender struct {
	// contains filtered or unexported fields
}

func New

func New(qrConf *QrConf) (*QrRender, error)

func (*QrRender) GetQrCodeImage

func (q *QrRender) GetQrCodeImage(text *string) (*image.RGBA, error)

func (*QrRender) Print

func (q *QrRender) Print()

Jump to

Keyboard shortcuts

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