mirror of
https://github.com/ubf/ubf.git
synced 2026-04-17 18:26:23 +00:00
28 lines
594 B
Plaintext
28 lines
594 B
Plaintext
+NAME("meta_server").
|
|
|
|
+VSN("ubf1.0").
|
|
|
|
+TYPES
|
|
|
|
info() = info;
|
|
description() = description;
|
|
services() = services;
|
|
contract() = contract;
|
|
serviceList() = [string()] "Names of the offered services";
|
|
|
|
help() = help;
|
|
startService() = {startService, string(), term()};
|
|
ok() = {ok, term()};
|
|
error() = {error, term()}.
|
|
|
|
+STATE start
|
|
help() => string() & start;
|
|
startService() => ok() & start
|
|
| error() & start.
|
|
|
|
+ANYSTATE
|
|
info() => string();
|
|
description() => string();
|
|
services() => serviceList();
|
|
contract() => term().
|