mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
- Removed unused ApiApp and ServerApp interfaces from core/apps/interfaces.go to streamline the codebase. - Updated the GetApi method in the Server struct to return a pointer to the Api type for better type handling. - Simplified the GetGinMode function in core/utils/config.go to always return gin.ReleaseMode, removing unnecessary conditional checks for development mode. - These changes enhance code clarity and maintainability by eliminating redundant code and improving type safety.
9 lines
70 B
Go
9 lines
70 B
Go
package apps
|
|
|
|
type App interface {
|
|
Init()
|
|
Start()
|
|
Wait()
|
|
Stop()
|
|
}
|