16 lines
433 B
Go
16 lines
433 B
Go
package host
|
|
|
|
import (
|
|
"git.wzray.com/homelab/hivemind/internal/transport"
|
|
"git.wzray.com/homelab/hivemind/internal/types"
|
|
)
|
|
|
|
type HostHandlers interface {
|
|
Dns() (types.HostState, error)
|
|
Nameserver() (types.HostState, error)
|
|
}
|
|
|
|
func Register(registrator transport.Registrator, h HostHandlers) {
|
|
dnsRoute.Register(registrator, transport.WithoutInput(h.Dns))
|
|
nsRoute.Register(registrator, transport.WithoutInput(h.Nameserver))
|
|
}
|