config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(configfile string)

Types

type GlobalConfig

type GlobalConfig struct {
	RunEnv  string  `json:"run_env"`
	Opcua   Opcua   `json:"opcua"`
	Openapi Openapi `json:"openapi"`
}
var Config GlobalConfig

type Opcua

type Opcua struct {
	Endpoint string `json:"endpoint"`
	Interval int    `json:"interval"` // in milliseconds, default is 100 milliseconds
}

type Openapi

type Openapi struct {
	Port int `json:"port"`
}

Jump to

Keyboard shortcuts

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