From fcda08498e8f914bbd0798da898818cd5d0e4348 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Sat, 29 May 2021 00:24:30 +0300 Subject: - Add new internal plugin - channel. Which used to deliver messages from the ws plugin to the http directly Signed-off-by: Valery Piashchynski --- plugins/channel/interface.go | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 plugins/channel/interface.go (limited to 'plugins/channel/interface.go') diff --git a/plugins/channel/interface.go b/plugins/channel/interface.go new file mode 100644 index 00000000..9a405e89 --- /dev/null +++ b/plugins/channel/interface.go @@ -0,0 +1,8 @@ +package channel + +// Hub used as a channel between two or more plugins +// this is not a PUBLIC plugin, API might be changed at any moment +type Hub interface { + SendCh() chan interface{} + ReceiveCh() chan interface{} +} -- cgit v1.2.3