package hackers_git import ( "inotify" _ "gopkg.in/yaml.v2" p "nslcd_proto" "nslcd_systemd" "sync" ) type Hackers struct { p.NullBackend lock *sync.RWMutex pam_password_prohibit_message string } var _ nslcd_systemd.Backend = &Hackers{} var _ p.Backend = &Hackers{} func (o *Hackers) Reload() { o.lock.Lock() defer o.lock.Unlock() // TODO } func NewHackers(yamlDir string) *Hackers { // TODO var hackers Hackers var lock sync.RWMutex hackers.lock = &lock go inotify_watcher(yamlDir) return &hackers } func inotify_watcher(yamlDir string) { // TODO }