to go mod
This commit is contained in:
@@ -2,7 +2,7 @@ package notes
|
||||
|
||||
import (
|
||||
"html"
|
||||
"local/notes-server/filetree"
|
||||
"gogs.inhome.blapointe.com/local/notes-server/filetree"
|
||||
"net/http"
|
||||
"path"
|
||||
"strings"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package notes
|
||||
|
||||
import "local/notes-server/config"
|
||||
import "gogs.inhome.blapointe.com/local/notes-server/config"
|
||||
|
||||
type Notes struct {
|
||||
root string
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"local/firestormy/config"
|
||||
"local/firestormy/config/ns"
|
||||
"local/firestormy/scheduler"
|
||||
"local/logb"
|
||||
"gogs.inhome.blapointe.com/local/firestormy/config"
|
||||
"gogs.inhome.blapointe.com/local/firestormy/config/ns"
|
||||
"gogs.inhome.blapointe.com/local/firestormy/scheduler"
|
||||
"gogs.inhome.blapointe.com/local/logb"
|
||||
"net/http"
|
||||
"strings"
|
||||
)
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"local/firestormy/config"
|
||||
"local/firestormy/config/ns"
|
||||
"local/firestormy/scheduler"
|
||||
"local/logb"
|
||||
"gogs.inhome.blapointe.com/local/firestormy/config"
|
||||
"gogs.inhome.blapointe.com/local/firestormy/config/ns"
|
||||
"gogs.inhome.blapointe.com/local/firestormy/scheduler"
|
||||
"gogs.inhome.blapointe.com/local/logb"
|
||||
"net/http"
|
||||
"strings"
|
||||
)
|
||||
|
||||
@@ -2,10 +2,10 @@ package server
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"local/firestormy/config"
|
||||
"local/firestormy/config/ns"
|
||||
"local/firestormy/scheduler"
|
||||
"local/logb"
|
||||
"gogs.inhome.blapointe.com/local/firestormy/config"
|
||||
"gogs.inhome.blapointe.com/local/firestormy/config/ns"
|
||||
"gogs.inhome.blapointe.com/local/firestormy/scheduler"
|
||||
"gogs.inhome.blapointe.com/local/logb"
|
||||
"net/http"
|
||||
"strings"
|
||||
)
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"local/firestormy/config"
|
||||
"local/firestormy/config/ns"
|
||||
"local/firestormy/scheduler"
|
||||
"time"
|
||||
|
||||
"gogs.inhome.blapointe.com/local/firestormy/config"
|
||||
"gogs.inhome.blapointe.com/local/firestormy/config/ns"
|
||||
"gogs.inhome.blapointe.com/local/firestormy/scheduler"
|
||||
)
|
||||
|
||||
func toMap(j *scheduler.Job, output bool) map[string]interface{} {
|
||||
@@ -26,8 +27,8 @@ func toMap(j *scheduler.Job, output bool) map[string]interface{} {
|
||||
"status": j.LastStatus,
|
||||
}
|
||||
if output {
|
||||
"output": j.LastOutput,
|
||||
"status": j.LastStatus,
|
||||
out["output"] = j.LastOutput
|
||||
out["status"] = j.LastStatus
|
||||
}
|
||||
return out
|
||||
}
|
||||
|
||||
@@ -2,10 +2,10 @@ package server
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"local/firestormy/config"
|
||||
"local/firestormy/config/ns"
|
||||
"local/firestormy/scheduler"
|
||||
"local/logb"
|
||||
"gogs.inhome.blapointe.com/local/firestormy/config"
|
||||
"gogs.inhome.blapointe.com/local/firestormy/config/ns"
|
||||
"gogs.inhome.blapointe.com/local/firestormy/scheduler"
|
||||
"gogs.inhome.blapointe.com/local/logb"
|
||||
"net/http"
|
||||
"sort"
|
||||
)
|
||||
|
||||
@@ -2,7 +2,7 @@ package server
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"local/router"
|
||||
"gogs.inhome.blapointe.com/local/router"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"local/firestormy/config"
|
||||
"local/firestormy/config/ns"
|
||||
"local/firestormy/scheduler"
|
||||
"local/logb"
|
||||
"gogs.inhome.blapointe.com/local/firestormy/config"
|
||||
"gogs.inhome.blapointe.com/local/firestormy/config/ns"
|
||||
"gogs.inhome.blapointe.com/local/firestormy/scheduler"
|
||||
"gogs.inhome.blapointe.com/local/logb"
|
||||
"net/http"
|
||||
"strings"
|
||||
)
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"local/firestormy/config"
|
||||
"local/gziphttp"
|
||||
"local/oauth2/oauth2client"
|
||||
"local/router"
|
||||
"gogs.inhome.blapointe.com/local/firestormy/config"
|
||||
"gogs.inhome.blapointe.com/local/gziphttp"
|
||||
"gogs.inhome.blapointe.com/local/oauth2/oauth2client"
|
||||
"gogs.inhome.blapointe.com/local/router"
|
||||
"log"
|
||||
"net/http"
|
||||
"path/filepath"
|
||||
|
||||
@@ -5,10 +5,10 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"local/firestormy/config"
|
||||
"local/firestormy/config/ns"
|
||||
"local/firestormy/scheduler"
|
||||
"local/logb"
|
||||
"gogs.inhome.blapointe.com/local/firestormy/config"
|
||||
"gogs.inhome.blapointe.com/local/firestormy/config/ns"
|
||||
"gogs.inhome.blapointe.com/local/firestormy/scheduler"
|
||||
"gogs.inhome.blapointe.com/local/logb"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user