Documentation ¶
Index ¶
- type Card
- func (c *Card) Atr() ([]byte, error)
- func (c *Card) Disconnect() error
- func (c *Card) GetSessionID() string
- func (c *Card) GetUID() []byte
- func (c *Card) SendAPDU(data []byte) ([]byte, error)
- func (c *Card) SetSessionID(sessionId string)
- func (c *Card) Status() (StatusCode, error)
- func (c *Card) String() string
- func (c *Card) Switch1444_4() ([]byte, error)
- func (c *Card) TransparentSessionEnd() ([]byte, error)
- func (c *Card) TransparentSessionResetRF() ([]byte, error)
- func (c *Card) TransparentSessionStart() ([]byte, error)
- func (c *Card) TransparentSessionStartOnly() ([]byte, error)
- type StatusCode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Card ¶
type Card struct {
// contains filtered or unexported fields
}
func ConnectCard ¶
ConnectCard verify presence's card on reader and return Card instance.
func (*Card) GetSessionID ¶ added in v1.0.12
GetSessionID return session id of card
func (*Card) SendAPDU ¶
SendAPDU send APDU 'data' to card through the reader and wait for a response.
func (*Card) SetSessionID ¶ added in v1.0.12
SetSessionID set session id of card
func (*Card) Status ¶
func (c *Card) Status() (StatusCode, error)
Status return status's card on reader
func (*Card) Switch1444_4 ¶ added in v1.0.12
Switch1444_4 switch channel reader to send ISO 1444-4 APDU
func (*Card) TransparentSessionEnd ¶ added in v1.0.12
TransparentSessionEnd finish transparent session
func (*Card) TransparentSessionResetRF ¶ added in v1.0.12
TransparentSessionResetRF start transparent session to send APDU
func (*Card) TransparentSessionStart ¶ added in v1.0.12
Transparent Session (PCSC)
func (*Card) TransparentSessionStartOnly ¶ added in v1.0.12
TransparentSessionStartOnly start transparent session to send APDU
type StatusCode ¶
type StatusCode int
const ( Ready StatusCode = 1 NotPresent StatusCode = -1 )
func (StatusCode) String ¶
func (s StatusCode) String() string
String return string with current state's card.
Click to show internal directories.
Click to hide internal directories.