temperature-generator

command
v0.0.0-...-bd6057f Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: MIT Imports: 5 Imported by: 0

README

A temperature data producer

Notes

  • Uses bare net/http to issue HTTP client request
  • Uses cobra for the CLI but not viper for configuration
    • Uses an idiomatic cobra app packages layout
    • ...so commands are package-level global variables and init() functions
  • The main thread handles SIGINT / SIGTERM signals, in a more elaborated app this would allow for graceful shutdowns

Usage

Run the generator

Usage:
  temperature-generator run [flags]

Flags:
      --count int     The number of generators (default 5)
  -h, --help          help for run
      --host string   The target temperature store host (default "localhost")
      --port int      The target temperature store port (default 3000)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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