From 60cbf8b8d0a591334bcc9ae7fa7cbd46b6c0ddfc Mon Sep 17 00:00:00 2001 From: Marc Di Luzio Date: Fri, 29 May 2020 23:05:00 +0100 Subject: [PATCH] Add rove package for the client api --- pkg/rove/rove.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pkg/rove/rove.go diff --git a/pkg/rove/rove.go b/pkg/rove/rove.go new file mode 100644 index 0000000..dae5c9c --- /dev/null +++ b/pkg/rove/rove.go @@ -0,0 +1,20 @@ +package rove + +type Connection struct { + address string +} + +func NewConnection(address string) *Connection { + return &Connection{ + address: address, + } +} + +// ServerStatus is a struct that contains information on the status of the server +type ServerStatus struct { + Ready bool `json:"ready"` +} + +func (c *Connection) Status() ServerStatus { + return ServerStatus{} +}