Skip to content

HolmesProcessing/archive-Holmes-Totem-Service-Library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Holmes-Totem-Service-Library

This library is built to make development of services for Holmes-Totem easier.

Contained within this library is a standardized set of helpers for Python3 and Go.

Available functionality for services

  • Go (examples):

    • JSON configuration parsing
    • Input identification and validation
    • HTTP router for standard paths / Standard Info-Output
    • Submit/get samples to/from a Holmes-Storage instance (example see here)
  • Python3 (examples):

    • JSON configuration parsing
    • Input identification and validation
    • HTTP router for standard paths / Standard Info-Output
    • Submit/get samples to/from a Holmes-Storage instance (example see here)

Additionally the following convenience functionality is available

Testing

Notes

  • Some tests create temporary files on the hard drive for testing
  • Some tests open a dummy webserver on 127.0.0.1:8017

To run the Python unit test:

cd holmeslibrary/python3
python3 -m unittest -v testing/*.py

To run the Go unit test:

go get "github.com/HolmesProcessing/Holmes-Totem-Service-Library"
go test "github.com/HolmesProcessing/Holmes-Totem-Service-Library/go/..."

About

Libraries available for Totem Services. This is a separate repository for compatibility with Docker.

Resources

License

Stars

Watchers

Forks

Packages

No packages published