syndicated-open/uri_runner.pr

29 lines
653 B
Plaintext
Raw Normal View History

2023-05-18 09:46:17 +00:00
; configure the daemon when it is built
; (this is an artifact of the author's build system)
? <built uri_runner ?path ?hash> [
<daemon uri_runner {
argv: [$path]
protocol: application/syndicate
env: { BUILD_SUM: $hash }
}>
]
2022-02-26 23:39:22 +00:00
; grab a dataspace for observing <open …> messages
2023-05-18 09:46:17 +00:00
? <socketspace ?socketspace> [
2022-04-15 23:04:37 +00:00
; log open messages
$socketspace ?? <open ?stuff> [
$log ! <log "-" { line: <open $stuff> }>
2023-05-18 09:46:17 +00:00
]
2022-05-19 16:58:47 +00:00
2023-05-18 09:46:17 +00:00
; configure the uri_runner
? <service-object <daemon uri_runner> ?cap> [
$cap {
; watch the config dataspace for handler configuration
handlerspace: $config
urispace: $socketspace
}
2022-05-19 16:58:47 +00:00
]
2022-02-26 23:39:22 +00:00
]