Documentation
¶
Index ¶
Constants ¶
View Source
const ( KeyAddress = "address" KeyInitDB = "database.initDB" )
Variables ¶
View Source
var AppName = "app"
View Source
var ControllerOptions = dig.Group("controllers")
Functions ¶
func GetContainer ¶
func InitConfig ¶
func InitConfig()
func NewErrorReport ¶ added in v0.1.1
func NewErrorReport(replyCode int, logger *zap.Logger) gin.HandlerFunc
func ReportBadrequest ¶ added in v0.1.2
Types ¶
type DiController ¶
type DiController interface { }
type GeneralResp ¶ added in v0.1.1
type ReportError ¶ added in v0.1.1
type ReportError struct { ReplyCode int // contains filtered or unexported fields }
func (*ReportError) Middleware ¶ added in v0.1.1
func (handle *ReportError) Middleware(c *gin.Context)
func (*ReportError) RespErrorToClient ¶ added in v0.1.1
func (handle *ReportError) RespErrorToClient(c *gin.Context, err interface{})
Click to show internal directories.
Click to hide internal directories.