Documentation ¶
Index ¶
- Constants
- 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
- type AccessInfoLogger
- type Application
- type CronLog
- type CronTask
- type WebAppEngine
Constants ¶
View Source
const (
Cron = "0 */10 * * * *"
)
Variables ¶
This section is empty.
Functions ¶
func RunCustomProgram ¶
启动自定义程序
func StopCronTask ¶
func StopCronTask()
Types ¶
type AccessErrLogger ¶
type AccessErrLogger struct{}
type AccessInfoLogger ¶
type AccessInfoLogger struct{}
type Application ¶
type CronTask ¶
type CronTask struct { Cron string // 定时参数的格式 Second | Minute | Hour | Dom | Month | Week TaskFunc func() }
type WebAppEngine ¶
ListenerApplication ...
Click to show internal directories.
Click to hide internal directories.