Documentation
¶
Index ¶
- type Device
- func (d *Device) Close() error
- func (d *Device) Closed() bool
- func (d *Device) FirstCTAPPayload(t testing.TB) (protocol.Command, []byte)
- func (d *Device) FirstCTAPRequestMap(t testing.TB) (protocol.Command, map[uint64]any)
- func (d *Device) FirstRequest(t testing.TB) Request
- func (d *Device) Read(p []byte) (int, error)
- func (d *Device) Requests(t testing.TB) []Request
- func (d *Device) Write(p []byte) (int, error)
- func (d *Device) Writes() []byte
- type Request
- type Response
- func CBOROK(cid ctaphid.ChannelID, data []byte) Response
- func CBORStatus(cid ctaphid.ChannelID, status ctaphid.StatusCode) Response
- func CTAPHIDError(cid ctaphid.ChannelID, err ctaphid.Error) Response
- func Keepalive(cid ctaphid.ChannelID, status ctaphid.StatusCode) Response
- func Message(cid ctaphid.ChannelID, command ctaphid.Command, data []byte) Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
func NewCBORDevice ¶
func (*Device) FirstCTAPPayload ¶
func (*Device) FirstCTAPRequestMap ¶
type Request ¶
func ParseRequests ¶
type Response ¶
func CBORStatus ¶
func CBORStatus(cid ctaphid.ChannelID, status ctaphid.StatusCode) Response
Click to show internal directories.
Click to hide internal directories.