context

package
v1.0.16 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	*scard.Context
}

func New

func New() (*Context, error)

New create a new context to work with readers.

func (*Context) IsValid

func (c *Context) IsValid() (bool, error)

IsValid verify context

func (*Context) ListReaders

func (c *Context) ListReaders() ([]string, error)

ListReaders list readers detected in context.

func (*Context) ReaderInformation

func (c *Context) ReaderInformation(key string) (string, error)

ReaderInformation verify reader with regex "key" and return real name's reader.

func (*Context) Release

func (c *Context) Release() error

Release release context

Jump to

Keyboard shortcuts

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