flexlegacy

package
v0.0.0-...-51fd5d7 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnsupportedFlexLegacyPortType = errors.New("unsupported Flex Legacy port type")
	ErrUnsupportedOID                = errors.New("unsupported Flex Legacy OID")
)

Functions

func FlexPortTypeToString

func FlexPortTypeToString(t PortType) (s string, err error)

func GetPortFromOID

func GetPortFromOID(oid string) (port int16, err error)

Types

type PortType

type PortType int16
const (
	Unknown PortType = iota
	System
	Ping
	Metering
	Status
	Command
	SNMPOutput
	SNMPVirtual
	ModbusRTU
	ModbusTCPTable
	Script
)

func ParseFlexPortType

func ParseFlexPortType(v string) (t PortType, err error)

func ParseFlexPortTypeFromOID

func ParseFlexPortTypeFromOID(oid string) (t PortType, err error)

Jump to

Keyboard shortcuts

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