config

package
v1.13.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	SlaveID      uint8
	ClientAddr   string
	ServerAddr   string
	BaudRate     int
	DataBits     int
	StopBits     int
	Interval     int
	Parity       string
	RS485Enabled bool
}

func NewConfig

func NewConfig() *Config

func (*Config) Flags

func (cfg *Config) Flags(fs *pflag.FlagSet)

func (*Config) Normalize

func (cfg *Config) Normalize() *Config

Jump to

Keyboard shortcuts

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