goivb

package module
v0.0.0-...-0eb7fed Latest Latest
Warning

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

Go to latest
Published: May 25, 2019 License: GPL-3.0 Imports: 10 Imported by: 0

README

GOIVB

An ivb monitor implemented in go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FPrint

func FPrint(parser gjson.Result, num int)

func GetSmartinfo

func GetSmartinfo(stopUid int) gjson.Result

func GetStops

func GetStops() gjson.Result

func Printall

func Printall(parser gjson.Result)

func RpiPrint

func RpiPrint(parser gjson.Result, num int)

func Watchdog

func Watchdog(watchdogId string)

Types

type GoivbConfig

type GoivbConfig struct {
	StopHost    string `toml:"StopHost"`
	PassageHost string `toml:"PassageHost"`
}

type GoivbSmi

type GoivbSmi gjson.Result

type GoivbStops

type GoivbStops gjson.Result

type TomlConfig

type TomlConfig struct {
	Goivb     GoivbConfig               `toml:"goivb"`
	Watchdogs map[string]WatchdogConfig `toml:"watchdog"`
	IsSet     bool
}
var Config TomlConfig

type WatchdogConfig

type WatchdogConfig struct {
	StopUid int     `toml:"StopUid"`
	Sleep   float64 `toml:"Sleep"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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