From 002eb4bb1981558fa5e614aed22d322f0f45d7ea Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Fri, 13 Nov 2020 13:42:40 +0300 Subject: Move all interfaces to the separate folder [RPC, METRICS, LOGGER] RPC for the metrics update to the working state RCP interface renamed to the RPCer --- interfaces/rpc/interface.go | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 interfaces/rpc/interface.go (limited to 'interfaces/rpc/interface.go') diff --git a/interfaces/rpc/interface.go b/interfaces/rpc/interface.go new file mode 100644 index 00000000..7fd2668c --- /dev/null +++ b/interfaces/rpc/interface.go @@ -0,0 +1,7 @@ +package rpc + +// RPCer declares the ability to create set of public RPC methods. +type RPCer interface { + // Provides RPC methods for the given service. + RPC() (interface{}, error) +} -- cgit v1.2.3 From 6eefd067f4c08ed51834926abd1a4c60ec55b56d Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Fri, 13 Nov 2020 16:29:08 +0300 Subject: Update tests --- interfaces/rpc/interface.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'interfaces/rpc/interface.go') diff --git a/interfaces/rpc/interface.go b/interfaces/rpc/interface.go index 7fd2668c..683fd2ec 100644 --- a/interfaces/rpc/interface.go +++ b/interfaces/rpc/interface.go @@ -3,5 +3,5 @@ package rpc // RPCer declares the ability to create set of public RPC methods. type RPCer interface { // Provides RPC methods for the given service. - RPC() (interface{}, error) + RPC() interface{} } -- cgit v1.2.3