Documentation ¶
Overview ¶
Package senbay provides the functions to encode and decode to the senbay format.
Index ¶
- func ShowResult(senbayDict map[string]interface{})
- type BaseX
- type Data
- func (SD Data) AddFloat(key string, value float32)
- func (SD Data) AddFloat64(key string, value float64)
- func (SD Data) AddInt(key string, value int)
- func (SD Data) AddInt64(key string, value int64)
- func (SD Data) AddText(key string, value string)
- func (SD Data) Clear()
- func (SD Data) Decode(text string) map[string]string
- func (SD Data) Encode(compress bool) string
- type Format
- type Handler
- type HandlerFunc
- type InputMode
- type Reader
- type SenbayFrame
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ShowResult ¶
func ShowResult(senbayDict map[string]interface{})
Types ¶
type Data ¶
A Data is
func NewSenbayData ¶
NewSenbayData returns a new SenbayData struct based on PN
func (Data) AddFloat64 ¶
AddFloat64 add float64 value to senbayData
type Format ¶
type Format struct { ReversedKeys map[string]string PN int // contains filtered or unexported fields }
Format is
func NewSenbayFormat ¶
NewSenbayFormat returns a new Format based on PN
type Handler ¶
type Handler interface {
Handle(senbayDict map[string]interface{})
}
func NewHandler ¶
func NewHandler(fn HandlerFunc) Handler
type HandlerFunc ¶
type HandlerFunc func(senbayDict map[string]interface{})
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader describe an reader to interpret senbay style contents
func NewSenbayReader ¶
func NewSenbayVideoReader ¶
NewSenbayVideoReader returns a new SenbayReader for a video
func (Reader) Start ¶
func (reader Reader) Start(fn HandlerFunc)
Start interpreting captured image recorded in senbay style
type SenbayFrame ¶
type SenbayFrame struct {
// contains filtered or unexported fields
}
func NewSenbayFrame ¶
func NewSenbayFrame(qrBoxSize uint, qrErrorCorrection int) *SenbayFrame
Click to show internal directories.
Click to hide internal directories.