Documentation ¶
Index ¶
- Variables
- func GetAvailableDrivers() []string
- func GetInterfaceIPv4Addr(iface string) (addr net.IP, err error)
- func GetTransportForIPv4(ifaceIP net.IP) (*http.Transport, error)
- func IsRegistered(name string) bool
- func RegisterDriver(name string, ...)
- type ActionError
- type BaseModem
- type LinkStatus
- type ModemCell
- type ModemSMS
- type SMS
- type UnmarshalError
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoDrivers = errors.New("no drivers were registered")
View Source
var ErrUnknown = errors.New("unknown error")
View Source
var ErrUnknownModel = errors.New("attempting to get unknown model")
Basic Errors
Functions ¶
func GetAvailableDrivers ¶
func GetAvailableDrivers() []string
func GetInterfaceIPv4Addr ¶ added in v0.1.2
Returns this computer's address on the interface
func GetTransportForIPv4 ¶ added in v0.1.2
func IsRegistered ¶ added in v0.1.2
Types ¶
type ActionError ¶
Complex Errors
func (ActionError) Error ¶
func (e ActionError) Error() string
func (ActionError) Unwrap ¶
func (e ActionError) Unwrap() error
type LinkStatus ¶
type LinkStatus struct {
State int8 // 0 - down 1 - disconnecting 2 - connecting 3 - up
}
Link statuses
type ModemCell ¶
type ModemCell interface { BaseModem GetCellConnStatus() (*LinkStatus, error) ConnectCell() error DisconnectCell() error }
type UnmarshalError ¶
-- //
func (UnmarshalError) Error ¶
func (e UnmarshalError) Error() string
func (UnmarshalError) Unwrap ¶
func (e UnmarshalError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.