Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MainCmd ¶
func MainCmd()
type Transport interface {
Info() TransportInfo
Readers() []ReaderState
OnReaderStateChange(ctx context.Context, cb OnReaderStateChange)
ConnectCard(ID string) (Card, error)
Close()
}
type TransportInfo struct {
// ID of the transport, which can be used to construct
// new instances
ID string
// DisplayName is a human readable name for the transport
DisplayName string
}
type ReaderState struct {
// ID of the Reader, which can be used to connect to cards
ID string
// CardInserted indicates that a card is present in the reader
CardInserted bool
// ATR is the ATR of the inserted card (if one is inserted)
ATR []byte
}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.