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).

Functions§

run
Serves requests until stdin ends.