[fix] Changed module name
This commit is contained in:
parent
8a4429cb3f
commit
92fb8356f1
2
pkg/cache/cache.go
vendored
2
pkg/cache/cache.go
vendored
@ -10,8 +10,8 @@
|
||||
package cache
|
||||
|
||||
import (
|
||||
"git.pbiernat.dev/golang/vegvisir/pkg/config"
|
||||
"log"
|
||||
"vegvisir/pkg/config"
|
||||
)
|
||||
|
||||
const (
|
||||
|
3
pkg/cache/redis_datastore.go
vendored
3
pkg/cache/redis_datastore.go
vendored
@ -10,12 +10,11 @@
|
||||
package cache
|
||||
|
||||
import (
|
||||
"github.com/go-redis/redis"
|
||||
"log"
|
||||
"os"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/go-redis/redis"
|
||||
)
|
||||
|
||||
// NewRedisDatastore function
|
||||
|
@ -11,14 +11,14 @@ package main
|
||||
|
||||
import (
|
||||
"flag"
|
||||
"git.pbiernat.dev/golang/vegvisir/pkg/server"
|
||||
"log"
|
||||
"net/http"
|
||||
_ "net/http/pprof"
|
||||
"os"
|
||||
"runtime"
|
||||
"runtime/pprof"
|
||||
"vegvisir/pkg/server"
|
||||
)
|
||||
import _ "net/http/pprof"
|
||||
|
||||
var (
|
||||
cPath = flag.String("c", "vegvisir.json", "Path to config file")
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
// ___ ____ ___ ___
|
||||
// \ \ / / | _ | __| \ \ / / || | __ || || _ |
|
||||
// \ \/ / |___ | |__ \ \/ / || |___ || ||___|
|
||||
@ -12,11 +11,11 @@ package server
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"git.pbiernat.dev/golang/vegvisir/pkg/cache"
|
||||
"git.pbiernat.dev/golang/vegvisir/pkg/config"
|
||||
"log"
|
||||
"regexp"
|
||||
"strings"
|
||||
"vegvisir/pkg/cache"
|
||||
"vegvisir/pkg/config"
|
||||
)
|
||||
|
||||
// Router struct
|
||||
@ -65,7 +64,7 @@ func (r *Router) FindByRequestURL(url []byte) (bool, *cache.RouteCache) {
|
||||
|
||||
//routeJSON, _ := ffjson.Marshal(&route) // FIXME: TMP
|
||||
|
||||
if err := r.cache.SetKey("route_" + sURL, route, r.config.Cache.RouteTTL); err != nil {
|
||||
if err := r.cache.SetKey("route_"+sURL, route, r.config.Cache.RouteTTL); err != nil {
|
||||
// FIXME: ^^ use cache.Manager* after refactor
|
||||
log.Println("Error saving route cache:", sURL)
|
||||
}
|
||||
|
@ -12,15 +12,14 @@ package server
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"git.pbiernat.dev/golang/vegvisir/pkg/cache"
|
||||
"git.pbiernat.dev/golang/vegvisir/pkg/config"
|
||||
"github.com/valyala/fasthttp"
|
||||
"log"
|
||||
"os"
|
||||
"os/signal"
|
||||
"syscall"
|
||||
"time"
|
||||
"vegvisir/pkg/cache"
|
||||
"vegvisir/pkg/config"
|
||||
|
||||
"github.com/valyala/fasthttp"
|
||||
)
|
||||
|
||||
const (
|
||||
|
Loading…
Reference in New Issue
Block a user