13 lines
291 B
Go
13 lines
291 B
Go
package node
|
|
|
|
import (
|
|
"git.wzray.com/homelab/hivemind/internal/transport"
|
|
)
|
|
|
|
type NodeHandlers interface {
|
|
Healthcheck() (string, error)
|
|
}
|
|
|
|
func Register(registrator transport.Registrator, h NodeHandlers) {
|
|
healthcheckRoute.Register(registrator, transport.WithoutInput(h.Healthcheck))
|
|
}
|