More page renames
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#api/syscall
|
||||
|
||||
Exposes a simple service registry API leveraged by various parts of SilverBullet, see [[Services]].
|
||||
Exposes a simple service registry API leveraged by various parts of SilverBullet, see [[Service]].
|
||||
|
||||
## Example
|
||||
```space-lua
|
||||
|
||||
@@ -24,7 +24,7 @@ A lot of [“built in” functionality](https://github.com/silverbulletmd/silver
|
||||
Syscalls (system calls) are the abstraction used in SilverBullet to cleanly create an API boundary between SilverBullet and extension code (Plugs or Space Lua). A lot of functionality core to SilverBullet (in the editor, the event system, datastore) are exposed through syscalls.
|
||||
|
||||
## Events and services
|
||||
[[Events]]
|
||||
[[Event]]
|
||||
|
||||
## Datastore
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ Here’s what’s new:
|
||||
|
||||
* [[Share]]: a new mechanism to push content to external places and pull external content in (also used as the foundation of [[Library]]). This partially replaces many [[Export]] use cases. Export will be more for one-off use cases.
|
||||
* [[Library]]: are now a more “real” thing, and can be distributed via the [[Library Manager]] and curated with [[Repository]]. For instructions on how to build your own libraries, see [[Library/Development]]. Eventually, this mechanism will succeed the `plugs` configuration and `Plugs: Update` mechanism. Plug authors can already start to update their plugs to get ready, usually all that needs to be done is to add a `PLUG.md` file to their repository: [example](https://github.com/silverbulletmd/silverbullet-mermaid/blob/main/PLUG.md).
|
||||
* [[Services]]: a new mechanism used behind the scenes to power [[Share]], but also [[Export]] and likely other features in the future. Built on top of [[Events]].
|
||||
* [[Service]]: a new mechanism used behind the scenes to power [[Share]], but also [[Export]] and likely other features in the future. Built on top of [[Event]].
|
||||
* [[URIs]] are now a more formalized and centralized mechanism, used by [[Share]] and likely other features in the future.
|
||||
* Removed “Import” support, succeeded by [[Share]].
|
||||
* [[Tag Picker]]: to quickly navigate to tag pages
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
SilverBullet has its own event bus.
|
||||
|
||||
Events can be subscribed to and dispatched via the [[API/event]] API. Other features, such as [[Services]] are built on top of Events.
|
||||
Events can be subscribed to and dispatched via the [[API/event]] API. Other features, such as [[Service]] are built on top of Events.
|
||||
|
||||
# Available events
|
||||
Here’s a dynamically generated list of events to give a sense of what’s used:
|
||||
@@ -7,7 +7,7 @@ The SilverBullet service bus is an extension mechanism built into SilverBullet.
|
||||
* Invocation: running a discovered service.
|
||||
|
||||
# Architecture
|
||||
Services are an abstraction built on top of [[Events]]. When a new service is defined, it registers itself listening to the `discover:<<selector>>` event (to be discovered), and under `service:<<guid>>` to be invoked.
|
||||
Services are an abstraction built on top of [[Event]]. When a new service is defined, it registers itself listening to the `discover:<<selector>>` event (to be discovered), and under `service:<<guid>>` to be invoked.
|
||||
|
||||
Service discovery happens by broadcasting an event on the event bus with the given selector, returning a list of services that are a match, ordered by (self assigned) priority. One (or all) of these services can then be invoked based on their returned ID.
|
||||
|
||||
Reference in New Issue
Block a user