Documentation ¶
Index ¶
- func ApplicationLogger()
- func ApplicationLoggerFlush()
- func Default() *gin.Engine
- func Setup(rootPath string, r GinGrouper, controller Controller)
- func Success(c *gin.Context, data interface{})
- func Write(c *gin.Context, code int, data interface{})
- type ApiResponse
- type Controller
- type GinGrouper
- type Handler
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplicationLoggerFlush ¶
func ApplicationLoggerFlush()
func Setup ¶
func Setup(rootPath string, r GinGrouper, controller Controller)
Types ¶
type ApiResponse ¶
type Controller ¶
type Controller interface {
RequestMappings() []Handler
}
type GinGrouper ¶
type GinGrouper interface {
Group(relativePath string, handlers ...gin.HandlerFunc) *gin.RouterGroup
}
Click to show internal directories.
Click to hide internal directories.