Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadOnlyModeStrings ¶
func ReadOnlyModeStrings() []string
ReadOnlyModeStrings returns a slice of all String values of the enum
func StartProxy ¶
func StartProxy(port int, config modbus.Settings, readOnly ReadOnlyMode) error
Types ¶
type ReadOnlyMode ¶
type ReadOnlyMode int
const ( ReadOnlyFalse ReadOnlyMode = iota ReadOnlyDeny ReadOnlyTrue )
func ReadOnlyModeString ¶
func ReadOnlyModeString(s string) (ReadOnlyMode, error)
ReadOnlyModeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func ReadOnlyModeValues ¶
func ReadOnlyModeValues() []ReadOnlyMode
ReadOnlyModeValues returns all values of the enum
func (ReadOnlyMode) IsAReadOnlyMode ¶
func (i ReadOnlyMode) IsAReadOnlyMode() bool
IsAReadOnlyMode returns "true" if the value is listed in the enum definition. "false" otherwise
func (ReadOnlyMode) String ¶
func (i ReadOnlyMode) String() string
Click to show internal directories.
Click to hide internal directories.