From faf54b053a1ab1faf1a9eb850061eb2589ef668b Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Wed, 9 May 2018 12:13:44 +0100 Subject: [PATCH] Add RPC Ping method --- web/rpc.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/rpc.go b/web/rpc.go index 341ae77b..8a08e760 100644 --- a/web/rpc.go +++ b/web/rpc.go @@ -31,6 +31,8 @@ type rpc struct{} func (r *rpc) Uniq(c *fibre.Context) (interface{}, error) { return rand.String(64), nil +func (r *rpc) Ping(c *fibre.Context) (interface{}, error) { + return "OK", nil } func (r *rpc) Info(c *fibre.Context) (interface{}, error) {