17 lines
330 B
Go
17 lines
330 B
Go
package node
|
|
|
|
import (
|
|
"git.wzray.com/homelab/hivemind/internal/transport"
|
|
)
|
|
|
|
type Client struct {
|
|
caller transport.Caller
|
|
}
|
|
|
|
func New(caller transport.Caller) *Client {
|
|
return &Client{caller: caller}
|
|
}
|
|
|
|
func (c *Client) Healthcheck(endpoint string) (string, error) {
|
|
return healthcheckRoute.CallNoInput(c.caller, endpoint)
|
|
}
|