mirror of
https://github.com/kataras/iris.git
synced 2026-01-01 09:17:02 +00:00
update go.mod deps
Former-commit-id: 91a0ab6a8cb35bf9143cee0447a6f72ca8a09333
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user