mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Mass s&r: iron-io -> kumokit
This commit is contained in:
@@ -3,7 +3,7 @@ package database
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"github.com/iron-io/functions/examples/blog/models"
|
||||
"github.com/kumokit/functions/examples/blog/models"
|
||||
"gopkg.in/mgo.v2"
|
||||
"gopkg.in/mgo.v2/bson"
|
||||
)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package database
|
||||
|
||||
import (
|
||||
"github.com/iron-io/functions/examples/blog/models"
|
||||
"github.com/kumokit/functions/examples/blog/models"
|
||||
"gopkg.in/mgo.v2"
|
||||
"gopkg.in/mgo.v2/bson"
|
||||
)
|
||||
|
||||
@@ -5,9 +5,9 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/iron-io/functions/examples/blog/database"
|
||||
"github.com/iron-io/functions/examples/blog/models"
|
||||
"github.com/iron-io/functions/examples/blog/routes"
|
||||
"github.com/kumokit/functions/examples/blog/database"
|
||||
"github.com/kumokit/functions/examples/blog/models"
|
||||
"github.com/kumokit/functions/examples/blog/routes"
|
||||
)
|
||||
|
||||
var noAuth = map[string]interface{}{}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package: github.com/iron-io/functions/examples/blog
|
||||
package: github.com/kumokit/functions/examples/blog
|
||||
import:
|
||||
- package: github.com/dgrijalva/jwt-go
|
||||
version: ^3.0.0
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/iron-io/functions/examples/blog/database"
|
||||
"github.com/iron-io/functions/examples/blog/models"
|
||||
"github.com/kumokit/functions/examples/blog/database"
|
||||
"github.com/kumokit/functions/examples/blog/models"
|
||||
)
|
||||
|
||||
func HandlePostCreate(db *database.Database, auth map[string]interface{}) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package route
|
||||
|
||||
import (
|
||||
"github.com/iron-io/functions/examples/blog/database"
|
||||
"github.com/kumokit/functions/examples/blog/database"
|
||||
"gopkg.in/mgo.v2/bson"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package route
|
||||
import (
|
||||
"os"
|
||||
|
||||
"github.com/iron-io/functions/examples/blog/database"
|
||||
"github.com/kumokit/functions/examples/blog/database"
|
||||
)
|
||||
|
||||
func HandlePostRead(db *database.Database, auth map[string]interface{}) {
|
||||
|
||||
@@ -8,8 +8,8 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/dgrijalva/jwt-go"
|
||||
"github.com/iron-io/functions/examples/blog/database"
|
||||
"github.com/iron-io/functions/examples/blog/models"
|
||||
"github.com/kumokit/functions/examples/blog/database"
|
||||
"github.com/kumokit/functions/examples/blog/models"
|
||||
"golang.org/x/crypto/bcrypt"
|
||||
)
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ Simple example of IronFunctions load balancer using Caddy Server
|
||||
|
||||
Start the IronFunctions instances
|
||||
|
||||
Ref: https://github.com/iron-io/functions/blob/master/README.md#start-the-ironfunctions-api
|
||||
Ref: https://github.com/kumokit/functions/blob/master/README.md#start-the-ironfunctions-api
|
||||
|
||||
|
||||
## Configure environment variable
|
||||
@@ -38,7 +38,7 @@ docker run --rm \
|
||||
|
||||
Follow the Quick-Start steps replacing the example hosts by the Caddy host (localhost:9000)
|
||||
|
||||
https://github.com/iron-io/functions/blob/master/README.md#quick-start
|
||||
https://github.com/kumokit/functions/blob/master/README.md#quick-start
|
||||
|
||||
|
||||
## Docker Compose example
|
||||
|
||||
@@ -6,8 +6,8 @@ import (
|
||||
"html"
|
||||
"net/http"
|
||||
|
||||
"github.com/iron-io/functions/api/models"
|
||||
"github.com/iron-io/functions/api/server"
|
||||
"github.com/kumokit/functions/api/models"
|
||||
"github.com/kumokit/functions/api/server"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
@@ -9,8 +9,8 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/iron-io/functions/api/models"
|
||||
"github.com/iron-io/functions/api/server"
|
||||
"github.com/kumokit/functions/api/models"
|
||||
"github.com/kumokit/functions/api/server"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package: github.com/iron-io/functions/examples/postgres
|
||||
package: github.com/kumokit/functions/examples/postgres
|
||||
import:
|
||||
- package: github.com/lib/pq
|
||||
- package: github.com/pkg/errors
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package: github.com/iron-io/functions/examples/redis
|
||||
package: github.com/kumokit/functions/examples/redis
|
||||
import:
|
||||
- package: github.com/garyburd/redigo
|
||||
version: ^1.0.0
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package: github.com/iron-io/functions/examples/twitter
|
||||
package: github.com/kumokit/functions/examples/twitter
|
||||
import:
|
||||
- package: github.com/dghubble/go-twitter
|
||||
subpackages:
|
||||
|
||||
Reference in New Issue
Block a user