Add rove package for the client api
This commit is contained in:
parent
b76fd1003c
commit
60cbf8b8d0
1 changed files with 20 additions and 0 deletions
20
pkg/rove/rove.go
Normal file
20
pkg/rove/rove.go
Normal file
|
@ -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{}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue