qr

package
v3.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenerateRequest

type GenerateRequest struct {
	// the size (height and width) in pixels of the generated QR code. Defaults to 256
	Size int64 `json:"size,string"`
	// the text to encode as a QR code (URL, phone number, email, etc)
	Text string `json:"text"`
}

type GenerateResponse

type GenerateResponse struct {
	// link to the QR code image in PNG format
	Qr string `json:"qr"`
}

type QrService

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

func NewQrService

func NewQrService(token string) *QrService

func (*QrService) Generate

func (t *QrService) Generate(request *GenerateRequest) (*GenerateResponse, error)

Generate a QR code with a specific text and size

Jump to

Keyboard shortcuts

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