Documentation
¶
Index ¶
- Variables
- func GetSerialBlockListCount() int
- func IsRetryableError(err error) bool
- type DataCorruptedError
- type Reader
- func (r *Reader) CancelWrite()
- func (*Reader) Capabilities() []readers.Capability
- func (r *Reader) Close() error
- func (r *Reader) Connected() bool
- func (r *Reader) Detect(connected []string) string
- func (r *Reader) Device() string
- func (r *Reader) IDs() []string
- func (r *Reader) Info() string
- func (r *Reader) Metadata() readers.DriverMetadata
- func (*Reader) OnMediaChange(*models.ActiveMedia) error
- func (r *Reader) Open(device config.ReadersConnect, iq chan<- readers.Scan) error
- func (r *Reader) Write(text string) (*tokens.Token, error)
- func (r *Reader) WriteWithContext(ctx context.Context, text string) (*tokens.Token, error)
- type TagNotFoundError
- type TransportTimeoutError
- type WriteRequest
- type WriteRequestResult
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrWriteCancelled = errors.New("write operation was cancelled")
Functions ¶
func GetSerialBlockListCount ¶
func GetSerialBlockListCount() int
func IsRetryableError ¶
Types ¶
type DataCorruptedError ¶
func (*DataCorruptedError) Error ¶
func (e *DataCorruptedError) Error() string
func (*DataCorruptedError) IsRetryable ¶
func (*DataCorruptedError) IsRetryable() bool
func (*DataCorruptedError) Unwrap ¶
func (e *DataCorruptedError) Unwrap() error
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func NewACR122Reader ¶
NewACR122Reader creates a reader that only works with ACR122 USB devices and ignores PN532 UART/I2C devices. This is useful when a separate PN532 library handles UART/I2C devices and we want to prevent conflicts.
func (*Reader) CancelWrite ¶
func (r *Reader) CancelWrite()
func (*Reader) Capabilities ¶
func (*Reader) Capabilities() []readers.Capability
func (*Reader) Metadata ¶
func (r *Reader) Metadata() readers.DriverMetadata
func (*Reader) OnMediaChange ¶
func (*Reader) OnMediaChange(*models.ActiveMedia) error
type TagNotFoundError ¶
func (*TagNotFoundError) Error ¶
func (e *TagNotFoundError) Error() string
func (*TagNotFoundError) IsRetryable ¶
func (*TagNotFoundError) IsRetryable() bool
func (*TagNotFoundError) Unwrap ¶
func (e *TagNotFoundError) Unwrap() error
type TransportTimeoutError ¶
func (*TransportTimeoutError) Error ¶
func (e *TransportTimeoutError) Error() string
func (*TransportTimeoutError) IsRetryable ¶
func (*TransportTimeoutError) IsRetryable() bool
func (*TransportTimeoutError) Unwrap ¶
func (e *TransportTimeoutError) Unwrap() error
type WriteRequest ¶
type WriteRequest struct {
Ctx context.Context
Result chan WriteRequestResult
Cancel chan bool
Text string
}
Click to show internal directories.
Click to hide internal directories.