qr_code

package
v0.0.0-...-cd24349 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultInvokerCfg = InvokerCfg{
	Debug:   true,
	Mode:    "QrCode",
	AvatarX: 40,
	AvatarY: 40,
	Size:    150,

	Foreground: "",
}

Functions

func DefaultBuild

func DefaultBuild() module.Invoker

default invoker build

Types

type InvokerCfg

type InvokerCfg struct {
	Debug            bool
	Mode             string
	AvatarX, AvatarY int
	// logo file path
	//Logo string
	// example: 150 * 150
	Size       int
	Foreground string
}

type QrCode

type QrCode struct {
	Of *QrEntity
	// contains filtered or unexported fields
}

func Invoker

func Invoker(name string) *QrCode

invoker

type QrEntity

type QrEntity struct {
	Size int
	// contains filtered or unexported fields
}

Custom QrCode struct

func (*QrEntity) New

func (qe *QrEntity) New(content, src string) error

func (*QrEntity) NewAvatar

func (qe *QrEntity) NewAvatar(content, srcAvatar, src string, size int, enable bool) error

func (*QrEntity) NewFg

func (qe *QrEntity) NewFg(content, src string) error

Jump to

Keyboard shortcuts

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