cmd

package
v0.0.0-...-15d4781 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2019 License: ISC Imports: 34 Imported by: 0

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.

Jump to

Keyboard shortcuts

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