Server for Infinity OJ
- Web Framework: Gin
- Registry: Consul
- Codec: Protobuf
- Tracing & Metrics: Jaeger
- Run consul daemon:
consul agent -dev
- Run jaeger daemon:
jaeger-all-in-one
- Run postgres service.
for the database:
create type judge_status as enum ('Pending', 'PartiallyCorrect', 'WrongAnswer', 'Accepted', 'SystemError', 'JudgementFailed', 'CompilationError', 'FileError', 'RuntimeError', 'TimeLimitExceeded', 'MemoryLimitExceeded', 'OutputLimitExceeded', 'InvalidInteraction', 'ConfigurationError', 'Canceled');
add following rule to host file:
<ip to db, 127.0.0.1> db
<ip to jaeger, 127.0.0.1> jaeger-agent
<ip to consul, 127.0.0.1> consul
make build
make run