qr

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2022 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Code

type Code struct {
	Type      string `json:"type,omitempty" xml:"type,omitempty" yaml:"type,omitempty"`
	Secret    string `json:"secret,omitempty" xml:"secret,omitempty" yaml:"secret,omitempty"`
	Algorithm string `json:"algorithm,omitempty" xml:"algorithm,omitempty" yaml:"algorithm,omitempty"`
	Label     string `json:"label,omitempty" xml:"label,omitempty" yaml:"label,omitempty"`
	Issuer    string `json:"issuer,omitempty" xml:"issuer,omitempty" yaml:"issuer,omitempty"`
	Period    int    `json:"period,omitempty" xml:"period,omitempty" yaml:"period,omitempty"`
	Digits    int    `json:"digits,omitempty" xml:"digits,omitempty" yaml:"digits,omitempty"`
	Counter   int    `json:"counter,omitempty" xml:"counter,omitempty" yaml:"counter,omitempty"`
	// contains filtered or unexported fields
}

Code holds the data associated with a QR code.

func NewCode

func NewCode() *Code

NewCode returns an instance of Code.

func (*Code) Build

func (c *Code) Build() error

Build validates and build QR code.

func (*Code) Get

func (c *Code) Get() string

Get return QR code.

func (*Code) GetEncoded

func (c *Code) GetEncoded() string

GetEncoded returns base64-encoded QR code.

Jump to

Keyboard shortcuts

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