served.utils.events

Undocumented in source.

Members

Enums

initializeHook
enum initializeHook

Hooks into initialization, possibly manipulating the InitializeResponse. Called after the extension entry point initialize() method, but before the initialize response was sent to the client.

nonStandard
enum nonStandard

UDA to annotate a request or notification parameter with to supress linting warnings.

onInitialize
enum onInitialize

Hooks into initialization, possibly manipulating the InitializeResponse. Called after the extension entry point initialize() method, but before the initialize response was sent to the client.

Mixin templates

EventProcessor
mixintemplate EventProcessor(alias ExtensionModule, EventProcessorConfig config = EventProcessorConfig.init)

Implements the event processor for a given extension module exposing a members field defining all potential methods.

Structs

EventProcessorConfig
struct EventProcessorConfig
Undocumented in source.
postProtocolMethod
struct postProtocolMethod

Called after the @protocolMethod for this method is handled. May have as many handlers registered as needed. When the actual protocol method is a partial method (multiple handlers, returning array) this will be ran on each chunk returned by every handler. In that case the handler will be run multiple times on different fibers.

protocolMethod
struct protocolMethod

Called for requests (not notifications) from the client to the server. This UDA must be used at most once per method for regular methods. For methods returning arrays (T[]) it's possible to register multiple functions with the same method. In this case, if the client supports it, partial results will be sent for each returning method, meaning the results are streamed. In case the client does not support partial methods, all results will be concatenated together and returned as one.

protocolNotification
struct protocolNotification
Undocumented in source.

Meta