]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/cypherpunks.ru/nncp/node.go
Remote command execution
[nncp.git] / src / cypherpunks.ru / nncp / node.go
index 7992f4bc8f1ce19d4c6a2b3e7d13f7cd937f1b78..9cd4605662b7fb90bdd5a8ad16758afa13b9e647 100644 (file)
@@ -1,6 +1,6 @@
 /*
 NNCP -- Node to Node copy, utilities for store-and-forward data exchange
-Copyright (C) 2016-2017 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2016-2018 Sergey Matveev <stargrave@stargrave.org>
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -42,9 +42,11 @@ type Node struct {
        ExchPub        *[32]byte
        SignPub        ed25519.PublicKey
        NoisePub       *[32]byte
-       Sendmail       []string
+       Exec           map[string][]string
        Incoming       *string
        Freq           *string
+       FreqChunked    int64
+       FreqMinSize    int64
        Via            []*NodeId
        Addrs          map[string]string
        OnlineDeadline uint
@@ -68,7 +70,7 @@ type NodeOur struct {
 type Call struct {
        Cron           *cronexpr.Expression
        Nice           uint8
-       Xx             *TRxTx
+       Xx             TRxTx
        Addr           *string
        OnlineDeadline uint
        MaxOnlineTime  uint