summaryrefslogtreecommitdiff
path: root/src/nshd
diff options
context:
space:
mode:
Diffstat (limited to 'src/nshd')
-rw-r--r--src/nshd/main.go19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/nshd/main.go b/src/nshd/main.go
index 986e019..8230734 100644
--- a/src/nshd/main.go
+++ b/src/nshd/main.go
@@ -3,9 +3,26 @@ package main
import (
_ "golang.org/x/exp/inotify"
_ "gopkg.in/yaml.v2"
+ "nslcd_proto"
"nslcd_systemd"
)
+type hackersBackend struct {
+ nslcd_proto.NullBackend
+}
+
+var _ nslcd_systemd.Backend = &hackersBackend{}
+
+func (o *hackersBackend) Reload() {
+ // TODO
+}
+
+func newHackersBackend() *hackersBackend {
+ // TODO
+ return &hackersBackend{}
+}
+
func main() {
- nslcd_systemd.Main(nil)
+ backend := newHackersBackend()
+ nslcd_systemd.Main(backend)
}