Versions in this module Expand all Collapse all v1 v1.0.2 Feb 12, 2022 Changes in this version + const Cron + func AppGetName() string + func ExitApplication(appInstance Application) + func Heartbeat(c *gin.Context) + func InitAppframe(appInstance Application) + func InitApplication(appName string) + func InitRouter() *gin.Engine + func QuitServer(server *http.Server) + func RunApplication(appInstance Application) + func RunCustomProgram(program ...func(*sync.WaitGroup, chan struct{})) + func StartCronTask(taskList []CronTask) error + func StartServer(router *gin.Engine, appPort int) + func StopCronTask() + type AccessErrLogger struct + func (a *AccessErrLogger) Write(p []byte) (n int, err error) + type AccessInfoLogger struct + func (a *AccessInfoLogger) Write(p []byte) (n int, err error) + type Application interface + Exit func() error + Init func() error + RegisterHttpRoute func(r *gin.Engine) error + type CronLog struct + func (c CronLog) Error(err error, msg string, keysAndValues ...interface{}) + func (c CronLog) Info(msg string, keysAndValues ...interface{}) + type CronTask struct + Cron string + TaskFunc func() + type WebAppEngine struct + AppPort int + Name string