From 414de49dac50699756acb712082de8cac3e14c52 Mon Sep 17 00:00:00 2001 From: philip-morlier Date: Fri, 8 Oct 2021 11:46:44 -0700 Subject: [PATCH] Yet another reset --- core/interface.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/interface.go b/core/interface.go index 9c29055..d9bee15 100644 --- a/core/interface.go +++ b/core/interface.go @@ -141,6 +141,11 @@ type Node interface { HTTPEndpoint() string WSEndpoint() string ResolvePath(x string) string + Attach() (Client, error) +} + +type Client interface { + Call(interface{}, string, ...interface{}) error } type Server interface { @@ -161,7 +166,6 @@ type PluginLoader interface { GetFeed() Feed } - type Subscription interface { Err() <-chan error // returns the error channel Unsubscribe() // cancels sending of events, closing the error channel