YEP: | 300 |
---|---|
Title: | is-daemon |
Authors: | Blaise Thompson |
Status: | accepted |
Tags: | trait |
Post-History: | 2020-04-22, 2020-07-14, 2021-02-22 |
This YEP defines the is-daemon trait. This is a core trait which applies to all yaq daemon. In other words, this YEP defines the config, state, and messages that all yaq daemons must implement.
This trait has been accepted. See built documentation at at yaq.fyi.
The config, state, and messages here must be implemented by all yaq daemons.
type: int
TCP port for daemon to occupy.
type: [null, string]
default: null
Serial number for the particular device represented by the daemon.
type: [null, string]
default: null
Make (manufacturer) for the particular device represented by the daemon.
type: [null, string]
default: null
Model (manufacturer part number) for the particular device represented by the daemon.
type: boolean
default: true
Disable this daemon. The kind entry-point will not attempt to start this daemon.
type: {type="enum", name="level", symbols=["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"]}
default = "info"
Set daemon log level. See YEP-106 for a complete description of logging in yaq.
type: boolean
default: false
Optionally force logging to a file. See YEP-106 for a complete description of logging in yaq.
response: boolean
Returns true if daemon is currently busy.
response: {'type': 'map', 'values': ['null', 'string']}
Map with information to identify the daemon, including name, kind, make, model, serial.
response: string
String representing the absolute filepath of the configuration file on the host machine.
response: string
Full configuration for the individual daemon as defined in the TOML file. This includes defaults and shared settings not directly specified in the daemon-specific TOML table.
parameter: restart: boolean
parameter: restart: default: false
Cleanly shutdown (or restart) daemon.
response: string
Daemon state toml file dumped as a as string.
This document is placed in the public domain or under the CC0-1.0-Universal license, whichever is more permissive.
built 2023-10-10 23:52:42 CC0: no copyright