Rename location.

This commit is contained in:
Travis Reeder
2017-05-15 11:00:15 -07:00
parent c0b381eb96
commit 4b9bba352d
106 changed files with 274 additions and 273 deletions

View File

@@ -3,7 +3,7 @@ package server
import (
"context"
"github.com/kumokit/functions/api/models"
"github.com/treeder/functions/api/models"
)
type AppListener interface {

View File

@@ -5,8 +5,8 @@ import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/kumokit/functions/api/models"
"github.com/kumokit/functions/api/runner/common"
"github.com/treeder/functions/api/models"
"github.com/treeder/functions/api/runner/common"
)
func (s *Server) handleAppCreate(c *gin.Context) {

View File

@@ -5,9 +5,9 @@ import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/kumokit/functions/api"
"github.com/kumokit/functions/api/models"
"github.com/kumokit/functions/api/runner/common"
"github.com/treeder/functions/api"
"github.com/treeder/functions/api/models"
"github.com/treeder/functions/api/runner/common"
)
func (s *Server) handleAppDelete(c *gin.Context) {

View File

@@ -5,7 +5,7 @@ import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/kumokit/functions/api"
"github.com/treeder/functions/api"
)
func (s *Server) handleAppGet(c *gin.Context) {

View File

@@ -5,7 +5,7 @@ import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/kumokit/functions/api/models"
"github.com/treeder/functions/api/models"
)
func (s *Server) handleAppList(c *gin.Context) {

View File

@@ -9,10 +9,10 @@ import (
"github.com/Sirupsen/logrus"
"github.com/gin-gonic/gin"
"github.com/kumokit/functions/api/datastore"
"github.com/kumokit/functions/api/models"
"github.com/kumokit/functions/api/mqs"
"github.com/kumokit/functions/api/runner/task"
"github.com/treeder/functions/api/datastore"
"github.com/treeder/functions/api/models"
"github.com/treeder/functions/api/mqs"
"github.com/treeder/functions/api/runner/task"
)
func setLogBuffer() *bytes.Buffer {

View File

@@ -5,9 +5,9 @@ import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/kumokit/functions/api"
"github.com/kumokit/functions/api/models"
"github.com/kumokit/functions/api/runner/common"
"github.com/treeder/functions/api"
"github.com/treeder/functions/api/models"
"github.com/treeder/functions/api/runner/common"
)
func (s *Server) handleAppUpdate(c *gin.Context) {

View File

@@ -4,8 +4,8 @@ import (
"context"
"errors"
"github.com/gin-gonic/gin"
"github.com/kumokit/functions/api/models"
"github.com/kumokit/functions/api/runner/common"
"github.com/treeder/functions/api/models"
"github.com/treeder/functions/api/runner/common"
"net/http"
)

View File

@@ -5,8 +5,8 @@ import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/kumokit/functions/api"
"github.com/kumokit/functions/api/models"
"github.com/treeder/functions/api"
"github.com/treeder/functions/api/models"
)
type ApiHandlerFunc func(w http.ResponseWriter, r *http.Request)

View File

@@ -8,7 +8,7 @@ package routecache
import (
"container/list"
"github.com/kumokit/functions/api/models"
"github.com/treeder/functions/api/models"
)
// Cache holds an internal linkedlist for hotness management. It is not safe

View File

@@ -7,7 +7,7 @@ import (
"github.com/Sirupsen/logrus"
"github.com/gin-gonic/gin"
"github.com/kumokit/functions/api/models"
"github.com/treeder/functions/api/models"
)
// Middleware is the interface required for implementing functions middlewar

View File

@@ -7,5 +7,5 @@ import (
)
func handlePing(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{"hello": "world!", "goto": "https://github.com/kumokit/functions"})
c.JSON(http.StatusOK, gin.H{"hello": "world!", "goto": "https://github.com/treeder/functions"})
}

View File

@@ -5,9 +5,9 @@ import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/kumokit/functions/api"
"github.com/kumokit/functions/api/models"
"github.com/kumokit/functions/api/runner/common"
"github.com/treeder/functions/api"
"github.com/treeder/functions/api/models"
"github.com/treeder/functions/api/runner/common"
)
func (s *Server) handleRouteCreate(c *gin.Context) {

View File

@@ -6,7 +6,7 @@ import (
"path"
"github.com/gin-gonic/gin"
"github.com/kumokit/functions/api"
"github.com/treeder/functions/api"
)
func (s *Server) handleRouteDelete(c *gin.Context) {

View File

@@ -6,7 +6,7 @@ import (
"path"
"github.com/gin-gonic/gin"
"github.com/kumokit/functions/api"
"github.com/treeder/functions/api"
)
func (s *Server) handleRouteGet(c *gin.Context) {

View File

@@ -5,8 +5,8 @@ import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/kumokit/functions/api"
"github.com/kumokit/functions/api/models"
"github.com/treeder/functions/api"
"github.com/treeder/functions/api/models"
)
func (s *Server) handleRouteList(c *gin.Context) {

View File

@@ -6,9 +6,9 @@ import (
"strings"
"testing"
"github.com/kumokit/functions/api/datastore"
"github.com/kumokit/functions/api/models"
"github.com/kumokit/functions/api/mqs"
"github.com/treeder/functions/api/datastore"
"github.com/treeder/functions/api/models"
"github.com/treeder/functions/api/mqs"
)
func TestRouteCreate(t *testing.T) {

View File

@@ -6,9 +6,9 @@ import (
"path"
"github.com/gin-gonic/gin"
"github.com/kumokit/functions/api"
"github.com/kumokit/functions/api/models"
"github.com/kumokit/functions/api/runner/common"
"github.com/treeder/functions/api"
"github.com/treeder/functions/api/models"
"github.com/treeder/functions/api/runner/common"
)
func (s *Server) handleRouteUpdate(c *gin.Context) {

View File

@@ -14,11 +14,11 @@ import (
"github.com/Sirupsen/logrus"
"github.com/gin-gonic/gin"
"github.com/kumokit/functions/api"
"github.com/kumokit/functions/api/models"
"github.com/kumokit/functions/api/runner"
"github.com/kumokit/functions/api/runner/task"
"github.com/kumokit/functions/api/runner/common"
"github.com/treeder/functions/api"
"github.com/treeder/functions/api/models"
"github.com/treeder/functions/api/runner"
"github.com/treeder/functions/api/runner/task"
"github.com/treeder/functions/api/runner/common"
uuid "github.com/satori/go.uuid"
)

View File

@@ -9,12 +9,12 @@ import (
"testing"
"github.com/gin-gonic/gin"
"github.com/kumokit/functions/api/datastore"
"github.com/kumokit/functions/api/models"
"github.com/kumokit/functions/api/mqs"
"github.com/kumokit/functions/api/runner"
"github.com/kumokit/functions/api/runner/task"
"github.com/kumokit/functions/api/server/internal/routecache"
"github.com/treeder/functions/api/datastore"
"github.com/treeder/functions/api/models"
"github.com/treeder/functions/api/mqs"
"github.com/treeder/functions/api/runner"
"github.com/treeder/functions/api/runner/task"
"github.com/treeder/functions/api/server/internal/routecache"
)
func testRouterAsync(ds models.Datastore, mq models.MessageQueue, rnr *runner.Runner, tasks chan task.Request, enqueue models.Enqueue) *gin.Engine {

View File

@@ -2,7 +2,7 @@ package server
import (
"context"
"github.com/kumokit/functions/api/models"
"github.com/treeder/functions/api/models"
)
type RunnerListener interface {

View File

@@ -7,11 +7,11 @@ import (
"strings"
"testing"
"github.com/kumokit/functions/api/datastore"
"github.com/kumokit/functions/api/models"
"github.com/kumokit/functions/api/mqs"
"github.com/kumokit/functions/api/runner"
"github.com/kumokit/functions/api/runner/task"
"github.com/treeder/functions/api/datastore"
"github.com/treeder/functions/api/models"
"github.com/treeder/functions/api/mqs"
"github.com/treeder/functions/api/runner"
"github.com/treeder/functions/api/runner/task"
)
func testRunner(t *testing.T) (*runner.Runner, context.CancelFunc) {

View File

@@ -14,14 +14,14 @@ import (
"github.com/Sirupsen/logrus"
"github.com/ccirello/supervisor"
"github.com/gin-gonic/gin"
"github.com/kumokit/functions/api"
"github.com/kumokit/functions/api/datastore"
"github.com/kumokit/functions/api/models"
"github.com/kumokit/functions/api/mqs"
"github.com/kumokit/functions/api/runner"
"github.com/kumokit/functions/api/runner/task"
"github.com/kumokit/functions/api/server/internal/routecache"
"github.com/kumokit/functions/api/runner/common"
"github.com/treeder/functions/api"
"github.com/treeder/functions/api/datastore"
"github.com/treeder/functions/api/models"
"github.com/treeder/functions/api/mqs"
"github.com/treeder/functions/api/runner"
"github.com/treeder/functions/api/runner/task"
"github.com/treeder/functions/api/server/internal/routecache"
"github.com/treeder/functions/api/runner/common"
"github.com/spf13/viper"
)

View File

@@ -12,12 +12,12 @@ import (
"testing"
"github.com/gin-gonic/gin"
"github.com/kumokit/functions/api/datastore"
"github.com/kumokit/functions/api/models"
"github.com/kumokit/functions/api/mqs"
"github.com/kumokit/functions/api/runner"
"github.com/kumokit/functions/api/runner/task"
"github.com/kumokit/functions/api/server/internal/routecache"
"github.com/treeder/functions/api/datastore"
"github.com/treeder/functions/api/models"
"github.com/treeder/functions/api/mqs"
"github.com/treeder/functions/api/runner"
"github.com/treeder/functions/api/runner/task"
"github.com/treeder/functions/api/server/internal/routecache"
)
var tmpBolt = "/tmp/func_test_bolt.db"

View File

@@ -5,7 +5,7 @@ package server
import (
"sync"
"github.com/kumokit/functions/api/models"
"github.com/treeder/functions/api/models"
)
// call is an in-flight or completed do call

View File

@@ -4,7 +4,7 @@ import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/kumokit/functions/api/version"
"github.com/treeder/functions/api/version"
)
func handleVersion(c *gin.Context) {