aocrun

Crates.ioaocrun
lib.rsaocrun
version0.1.0
sourcesrc
created_at2023-05-11 20:56:12.698694
updated_at2023-05-11 20:56:12.698694
descriptiongRPC server to take AoC solve requests and respond with answers
homepage
repositoryhttps://gitlab.com/labcycle/aocrun
max_upload_size
id862444
size72,901
hubcycle (hubcycle)

documentation

README

Aocrun

Aocrun provides a gRPC server implementation to take requests containing year, day, and optional data string. Refer to aocrunner.proto for the service, the request, and the response formats.

See documentation.

Setup

Make sure aocdata service is set up before proceeding further.

Replace podman with docker according to the avaialbe container utility. Aocdata server's URL must be provided as an environment variable AOC_DATA_URL to the container. e.g. AOC_DATA_URL="http://localhost:31370"

$ git clone https://gitlab.com/aoc3913919/aocrun
$ cd aocrun
$ podman build -t aocrun -f ./Containerfile
$ podman run -dt --name aocrun_container -p 41470:4147 -e AOC_DATA_URL=__AocdataUrl__ aocrun

How it works

  • After starting the server, send request as Attributes to the unary RPC GetAnswer mentioning the year and the day fields (Optionally, input data can also be provided as a field).
  • The answer is sent as Answer.
  • The input data is queried from Aocdata server if the input field is not provided in Attributes.
Commit count: 7

cargo fmt