common

module
v0.0.0-...-7d047eb Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2022 License: AGPL-3.0

README

OpenRFSense Common

This Go module contains common types and packages which are to be shared between the node and backend code.

  • id: provides a random string generator seeded either with the current time or with an arbitrary byte slice. Used to generate various kinds of IDs internally (node hardware ID, campaign ID).
  • logging: provides a single-output, leveled logger by wrapping log.Logger from the standard library. Uses a single allocation per log call.
  • stats: contains a simple matrics/statistics manager for nodes, with arbitrary information provided by any object implementing the relevant interface.
  • types: Go object representations for HTTP requests/responses between clients and backend, with validation.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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