update go.mod deps

Former-commit-id: 91a0ab6a8cb35bf9143cee0447a6f72ca8a09333
This commit is contained in:
Gerasimos (Makis) Maropoulos 2020-05-04 20:23:15 +03:00
parent 20fcfb4110
commit f5e59c10e1
4 changed files with 11 additions and 14 deletions

View File

@ -23,7 +23,9 @@ func newApp() *iris.Application {
// Set to false to disallow path (local) redirects,
// see https://github.com/kataras/iris/issues/1369.
// 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) {
hi := ctx.Tr("hi", "iris")

View File

@ -44,7 +44,9 @@ func newApp() *iris.Application {
// 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{
Server: grpcServer, // Required.
ServiceName: "helloworld.Greeter", // Required.

8
go.mod
View File

@ -7,12 +7,12 @@ require (
github.com/CloudyKit/jet/v3 v3.0.0
github.com/Shopify/goreferrer v0.0.0-20181106222321-ec9c9a553398
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/fatih/structs v1.1.0
github.com/gavv/httpexpect v2.0.0+incompatible
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/iris-contrib/blackfriday 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/vmihailenco/msgpack/v5 v5.0.0-alpha.2
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/time v0.0.0-20200416051211-89c76fbcd5d1
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
)

View File

@ -10,17 +10,10 @@ import (
"github.com/kataras/iris/v12/sessions"
"github.com/dgraph-io/badger"
"github.com/dgraph-io/badger/v2"
"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"
// for creating the sessions directory path, opening and write the session file.
var (