qr_code

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QrCode

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

QrCode 带参数的二维码

func New

func New(account contracts.AccountInterface) *QrCode

func (*QrCode) Forever

func (qr *QrCode) Forever(scene Scene) (*Ticket, error)

Forever 永久二维码

func (*QrCode) Temporary

func (qr *QrCode) Temporary(scene Scene, expireSeconds int64) (*Ticket, error)

Temporary 临时二维码

func (*QrCode) Url

func (qr *QrCode) Url(ticket string) string

Url 获取二维码图片

type Scene

type Scene func(*sceneInfo)

func WithIntScene

func WithIntScene(sceneValue int) Scene

func WithStrScene

func WithStrScene(sceneValue string) Scene

type Ticket

type Ticket struct {
	Ticket        string
	ExpireSeconds int64
	Url           string
}

Jump to

Keyboard shortcuts

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