Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrorInvalidRecoveryLevel = "invalid recovery level requested" ErrorInvalidSize = "invalid size requested" ErrorNoContent = "content can't be empty" ErrorContentTooLarge = "content size too large" ErrorGenerate = "unable to generate QR" )
QR Service Error descriptions
View Source
const ServiceName = "qr"
ServiceName of this service.
Variables ¶
View Source
var ( ErrInvalidRecoveryLevel = errors.New(ErrorInvalidRecoveryLevel) ErrInvalidSize = errors.New(ErrorInvalidSize) ErrNoContent = errors.New(ErrorNoContent) ErrContentTooLarge = errors.New(ErrorContentTooLarge) ErrGenerate = errors.New(ErrorGenerate) )
QR Service Errors
Functions ¶
This section is empty.
Types ¶
type RecoveryLevel ¶
type RecoveryLevel int
RecoveryLevel : Error detection/recovery capacity. See: http://www.qrcode.com/en/about/error_correction.html
const ( LevelL RecoveryLevel = iota // Level L: 7% error recovery. LevelM // Level M: 15% error recovery. LevelQ // Level Q: 25% error recovery. LevelH // Level H: 30% error recovery. )
RecoveryLevel enum identifying QR Code Error Correction Capability
Click to show internal directories.
Click to hide internal directories.