mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
update go.mod deps
Former-commit-id: 91a0ab6a8cb35bf9143cee0447a6f72ca8a09333
This commit is contained in:
parent
20fcfb4110
commit
f5e59c10e1
|
@ -23,7 +23,9 @@ func newApp() *iris.Application {
|
||||||
// Set to false to disallow path (local) redirects,
|
// Set to false to disallow path (local) redirects,
|
||||||
// see https://github.com/kataras/iris/issues/1369.
|
// see https://github.com/kataras/iris/issues/1369.
|
||||||
// app.I18n.PathRedirect = true
|
// app.I18n.PathRedirect = true
|
||||||
// See app.I18n.ExtractFunc to change the way a language is extracted from a request.
|
//
|
||||||
|
// See `app.I18n.ExtractFunc = func(ctx iris.Context) string` or
|
||||||
|
// `ctx.SetLanguage(langCode string)` to change the extracted language from a request.
|
||||||
|
|
||||||
app.Get("/", func(ctx iris.Context) {
|
app.Get("/", func(ctx iris.Context) {
|
||||||
hi := ctx.Tr("hi", "iris")
|
hi := ctx.Tr("hi", "iris")
|
||||||
|
|
|
@ -44,7 +44,9 @@ func newApp() *iris.Application {
|
||||||
|
|
||||||
// serviceName := pb.File_helloworld_proto.Services().Get(0).FullName()
|
// serviceName := pb.File_helloworld_proto.Services().Get(0).FullName()
|
||||||
|
|
||||||
// Register MVC application controller.
|
// Register MVC application controller for gRPC services.
|
||||||
|
// You can bind as many mvc gRpc services in the same Party or app,
|
||||||
|
// as the ServiceName differs.
|
||||||
mvc.New(app).Handle(ctrl, mvc.GRPC{
|
mvc.New(app).Handle(ctrl, mvc.GRPC{
|
||||||
Server: grpcServer, // Required.
|
Server: grpcServer, // Required.
|
||||||
ServiceName: "helloworld.Greeter", // Required.
|
ServiceName: "helloworld.Greeter", // Required.
|
||||||
|
|
8
go.mod
8
go.mod
|
@ -7,12 +7,12 @@ require (
|
||||||
github.com/CloudyKit/jet/v3 v3.0.0
|
github.com/CloudyKit/jet/v3 v3.0.0
|
||||||
github.com/Shopify/goreferrer v0.0.0-20181106222321-ec9c9a553398
|
github.com/Shopify/goreferrer v0.0.0-20181106222321-ec9c9a553398
|
||||||
github.com/aymerick/raymond v2.0.3-0.20180322193309-b565731e1464+incompatible
|
github.com/aymerick/raymond v2.0.3-0.20180322193309-b565731e1464+incompatible
|
||||||
github.com/dgraph-io/badger v1.6.1
|
github.com/dgraph-io/badger/v2 v2.0.3
|
||||||
github.com/eknkc/amber v0.0.0-20171010120322-cdade1c07385
|
github.com/eknkc/amber v0.0.0-20171010120322-cdade1c07385
|
||||||
github.com/fatih/structs v1.1.0
|
github.com/fatih/structs v1.1.0
|
||||||
github.com/gavv/httpexpect v2.0.0+incompatible
|
github.com/gavv/httpexpect v2.0.0+incompatible
|
||||||
github.com/golang/protobuf v1.4.0
|
github.com/golang/protobuf v1.4.0
|
||||||
github.com/gomodule/redigo v1.7.1-0.20190724094224-574c33c3df38
|
github.com/gomodule/redigo v1.8.0
|
||||||
github.com/hashicorp/go-version v1.2.0
|
github.com/hashicorp/go-version v1.2.0
|
||||||
github.com/iris-contrib/blackfriday v2.0.0+incompatible
|
github.com/iris-contrib/blackfriday v2.0.0+incompatible
|
||||||
github.com/iris-contrib/go.uuid v2.0.0+incompatible
|
github.com/iris-contrib/go.uuid v2.0.0+incompatible
|
||||||
|
@ -31,9 +31,9 @@ require (
|
||||||
github.com/schollz/closestmatch v2.1.0+incompatible
|
github.com/schollz/closestmatch v2.1.0+incompatible
|
||||||
github.com/vmihailenco/msgpack/v5 v5.0.0-alpha.2
|
github.com/vmihailenco/msgpack/v5 v5.0.0-alpha.2
|
||||||
go.etcd.io/bbolt v1.3.4
|
go.etcd.io/bbolt v1.3.4
|
||||||
golang.org/x/crypto v0.0.0-20200427165652-729f1e841bcc
|
golang.org/x/crypto v0.0.0-20200429183012-4b2356b1ed79
|
||||||
golang.org/x/text v0.3.2
|
golang.org/x/text v0.3.2
|
||||||
golang.org/x/time v0.0.0-20200416051211-89c76fbcd5d1
|
golang.org/x/time v0.0.0-20200416051211-89c76fbcd5d1
|
||||||
gopkg.in/ini.v1 v1.55.0
|
gopkg.in/ini.v1 v1.55.0
|
||||||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c
|
gopkg.in/yaml.v3 v3.0.0-20200504163728-5308cda29e3d
|
||||||
)
|
)
|
||||||
|
|
|
@ -10,17 +10,10 @@ import (
|
||||||
|
|
||||||
"github.com/kataras/iris/v12/sessions"
|
"github.com/kataras/iris/v12/sessions"
|
||||||
|
|
||||||
"github.com/dgraph-io/badger"
|
"github.com/dgraph-io/badger/v2"
|
||||||
"github.com/kataras/golog"
|
"github.com/kataras/golog"
|
||||||
)
|
)
|
||||||
|
|
||||||
/*
|
|
||||||
Badger has been updated to 1.6.0 - 2019-07-01
|
|
||||||
which contains a lot of breaking changes
|
|
||||||
that are adapted correctly here.
|
|
||||||
2019-07-14
|
|
||||||
*/
|
|
||||||
|
|
||||||
// DefaultFileMode used as the default database's "fileMode"
|
// DefaultFileMode used as the default database's "fileMode"
|
||||||
// for creating the sessions directory path, opening and write the session file.
|
// for creating the sessions directory path, opening and write the session file.
|
||||||
var (
|
var (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user