]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/ctx.go
exec notification
[nncp.git] / src / ctx.go
index 3793bbba6b6808b3c3b9d0630a788682b54e615b..8a1146e2b5651f44731cfe7de792ff3388c906a9 100644 (file)
@@ -24,8 +24,9 @@ import (
        "os"
        "path/filepath"
 
-       "golang.org/x/sys/unix"
        "syscall"
+
+       "golang.org/x/sys/unix"
 )
 
 type Ctx struct {
@@ -41,6 +42,7 @@ type Ctx struct {
        Debug      bool
        NotifyFile *FromToJSON
        NotifyFreq *FromToJSON
+       NotifyExec map[string]*FromToJSON
 }
 
 func (ctx *Ctx) FindNode(id string) (*Node, error) {