Messing around with http server frameworks.
Written using FastAPI python http framework.
See the prototype readme for usage.
Robot test client is written in golang. It runs utilizing generated code from the code generators.
See the robot readme for usage.
All code generators can be run using a top level script:
./generate_code.sh
this will generate the following:
-
Robot alarms table accessors
This is generated from
robot-client/alarms/alarm_info.csvand creates an interface for the csv data inrobot-client/alarms/alarm_info.go. -
Robot client-server interface code
Using the json schema types from
./prototypeserver code, golang bindings are generated and placed atrobot-client/logging/logging_schema.go. -
Production server stub
Schema files will generate to
production-schema/prototype_json_schema.schema.jsonandproduction-schema/prototype_openapi.schema.json.A stub Rust server as well as an example client will be written to
production-schema/out/rust-hyper.