edgex004 / http-server-demo

Messing around with http server frameworks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

http-server-demo

Messing around with http server frameworks.

Prototype server

Written using FastAPI python http framework.

See the prototype readme for usage.

Robot Client

Robot test client is written in golang. It runs utilizing generated code from the code generators.

See the robot readme for usage.

Code Generators

All code generators can be run using a top level script:

./generate_code.sh

this will generate the following:

  1. Robot alarms table accessors

    This is generated from robot-client/alarms/alarm_info.csv and creates an interface for the csv data in robot-client/alarms/alarm_info.go.

  2. Robot client-server interface code

    Using the json schema types from ./prototype server code, golang bindings are generated and placed at robot-client/logging/logging_schema.go.

  3. Production server stub

    Schema files will generate to production-schema/prototype_json_schema.schema.json and production-schema/prototype_openapi.schema.json.

    A stub Rust server as well as an example client will be written to production-schema/out/rust-hyper.

About

Messing around with http server frameworks.

License:MIT License


Languages

Language:Go 59.8%Language:Python 35.2%Language:Shell 5.0%