go1/util_publishing_event

此包的规范仓库似乎已消失,因此该包已被冻结。

v0.1 2018-11-12 04:52 UTC

This package is auto-updated.

Last update: 2024-05-14 01:30:42 UTC


README

  • 提供格式化事件消息的功能。
  • 根据提供的管道将数据嵌入到消息中

用法

$event = new Event($payload, 'message.update');
$pipes = [];
........
$pipes[] = new EventPipeline('type', ['id' => 100]);

$newEvent = (new EventHandler)->process($event, $pipes);