serialdet

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Overview

Package serialdet provides method for finding active serial ports

Package serialdet provides method for finding active serial ports

Package serialdet provides method for finding active serial ports

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error string

Error is a constant-like string error.

const (
	ErrPermissionDenied         Error = "permission denied"
	ErrInvalidInformationHeader Error = "invalid information header"
	ErrInvalidRow               Error = "invalid row"
	ErrDriverNotDefined         Error = "driver is not defined"
)

Possible package errors.

func (Error) Error

func (err Error) Error() string

type SerialPortInfo

type SerialPortInfo struct {
	// contains filtered or unexported fields
}

SerialPortInfo describes main information about active serial port.

func List

func List() (ports []SerialPortInfo, err error)

List returns active serial ports.

func (SerialPortInfo) Description

func (i SerialPortInfo) Description() string

Description contains serial ID or driver name of device.

func (SerialPortInfo) Path

func (i SerialPortInfo) Path() string

Path is an absolute path to the device.

Jump to

Keyboard shortcuts

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