Skip to main content

Module server_id

Module server_id 

Source
Expand description

The id each server gives itself, which .semora names the server by. The CLI learns it from whoami and keeps it in server-ids.cache in the config folder, one <origin>\t<id> line per server, so most commands don’t ask again.

Functions§

is_id
32 hex digits once trimmed, in any case.
normal
An id as the server writes it: trimmed, lowercase.
of
The id of the client’s server: the cached one unless fresh, else whoami’s, which is cached for next time. A cache that can’t be written costs only the next lookup.