config

package
v0.0.0-...-8bc70f8 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: Apache-2.0 Imports: 1 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 {
	Grpc_port        string `env:"gRPC_PORT"`
	Device_interface string `env:"INTERFACE"`
	ComProtocol      string `env:"COM_PROTOCOL"`
	ComName          string `env:"COM_NAME"`
	Ip               string `env:"DEVICE_IP"`
	Mask             string `env:"DEVICE_MASK"`
	Port             int    `env:"DEVICE_PORT"`
	DefaultGateway   string `env:"DEVICE_GW"`
	Password         string `env:"DEVICE_PSWD"`
	Vendor           uint16 `env:"VENDOR"`
	ProductId        uint16 `env:"PRODUCT_ID"`
}

func GetConfig

func GetConfig() (Config, error)

Jump to

Keyboard shortcuts

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