config

package
v0.0.0-...-40d5921 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: MIT Imports: 0 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 {
	Serial             SerialConfig             `yaml:"serial"`
	MeasurementStorage MeasurementStorageConfig `yaml:"database"`
	FakeStorageMode    bool                     `yaml:"fake_storage_mode"`
	FakeSensorMode     bool                     `yaml:"fake_sensor_mode"`
	BufferFile         string                   `yaml:"buffer_file"`
}

type MeasurementStorageConfig

type MeasurementStorageConfig struct {
	DbType       string   `yaml:"type"`
	OverrideUrls []string `yaml:"override_url"`
	Secret       string   `yaml:"key"`
	ClientId     string   `yaml:"client_id"`
}

type SerialConfig

type SerialConfig struct {
	Device   string `yaml:"device"`
	Baud     uint   `yaml:"baud"`
	Bits     uint   `yaml:"bits"`
	StopBits uint   `yaml:"stopbits"`
}

Jump to

Keyboard shortcuts

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