1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-24 05:17:03 +00:00

mvc: struct field and method dependency logs on debug level. Read HISTORY.md

- remove Party.GetReporter

- Read HISTORY.md
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-08-24 21:44:29 +03:00
parent ef5685bf7e
commit 5e82fa5b89
24 changed files with 435 additions and 167 deletions

View File

@@ -31,7 +31,7 @@ func (c *controller) Get() string {
// You could register a Context and get its error code through ctx.GetStatusCode().
//
// This can accept dependencies and output values like any other Controller Method,
// however be careful if your registered dependencies depend only on succesful(200...) requests.
// however be careful if your registered dependencies depend only on successful(200...) requests.
//
// Also note that, if you register more than one controller.HandleHTTPError
// in the same Party, you need to use the RouteOverlap feature as shown

View File

@@ -12,13 +12,15 @@ import (
func main() {
app := iris.New()
app.Logger().SetLevel("debug")
app.Get("/ping", pong).Describe("healthcheck")
mvc.Configure(app.Party("/greet"), setup)
// http://localhost:8080/greet?name=kataras
addr := ":" + environment.Getenv("PORT", "8080")
app.Listen(addr, iris.WithLogLevel("debug"))
app.Listen(addr)
}
func pong(ctx iris.Context) {