mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Rename location.
This commit is contained in:
@@ -3,7 +3,7 @@ package server
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/kumokit/functions/api/models"
|
||||
"github.com/treeder/functions/api/models"
|
||||
)
|
||||
|
||||
type AppListener interface {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"})
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -2,7 +2,7 @@ package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/kumokit/functions/api/models"
|
||||
"github.com/treeder/functions/api/models"
|
||||
)
|
||||
|
||||
type RunnerListener interface {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user