Documentation
¶
Index ¶
- Constants
- Variables
- func DropDuplicated(raw []string) []string
- func GetContainer() *dig.Container
- func InitConfig()
- func NewErrorReport(replyCode int, logger *zap.Logger) gin.HandlerFunc
- func ReportBadrequest(c *gin.Context, err error)
- func Start() error
- type DiController
- type ErrorCode
- type GeneralResp
- type Params
- type ReportError
Constants ¶
View Source
const ( KeyAddress = "address" KeyInitDB = "database.initDB" )
Variables ¶
View Source
var AppName = "app"
View Source
var ControllerOptions = dig.Group("controllers")
Functions ¶
func DropDuplicated ¶ added in v0.1.10
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.