qr_code

package
v0.0.0-...-3ada85e Latest Latest
Warning

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

Go to latest
Published: Aug 12, 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 Client

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

func Invoker

func Invoker(name string) *Client

invoker

type InvokerCfg

type InvokerCfg struct {
	Debug      bool   `ini:"debug"`
	Mode       string `ini:"mode"`
	AvatarX    int    `ini:"avatarX"`
	AvatarY    int    `ini:"avatarY"`
	Size       int    `ini:"size"`
	Foreground string `ini:"foreground"`
}

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