Documentation ¶
Overview ¶
Package asanazap provides handlers to enable ZAP log. package main
import (
"time" "go.uber.org/zap" asana "github.com/goasana/asana" "github.com/goasana/asana/plugins/asanazap"
)
type MainController struct { asana.Controller }
func (this *MainController) Get() { this.ctx.Text("hello world") }
func main() { logger, _ := zap.NewProduction() asanazap.InitAsanaZapMiddleware(logger, time.RFC3339, true) asana.Router("/", &MainController{}) asana.Run(":8090") }
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeforeMiddlewareZap ¶
BeforeMiddlewareZap For insert in asana.BeforeRouter Filter
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.