Skip to main content

Module serve

Module serve 

Source
Expand description

yog serve — the CLI as a service for tools (Yog-IDLE): frames of binary Yog Data (yog_data::io) on stdin and stdout, each request a Request and each answer a Reply. Every format is read, written and converted here, so a tool needn’t be rebuilt when a format changes — only this binary. Answers hold plain values: a typed one (@item:x) is sent as its string.

Methods: the service’s own (data), a mod’s resources (media) and the designers’ (design::service).

Structs§

Problem
One problem: what it is, what’s wrong, and where.
Request
What a tool asks: a method, and its parameters.
ServiceError
The error a request is answered with.

Functions§

answer
request answered, in plain values.
run
Serves requests until stdin ends.

Type Aliases§

Reply
The answer: the method’s result, or what went wrong.