Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeLogger ¶ added in v3.3.0
ChangeLogger changing the logger instance used by the application.
func GetConfReader ¶
GetConfReader returns the configuration reader of the application.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App represents the main application structure.
func Default ¶
func Default(listeners ...listener.ApplicationListener) *App
Default creates a default application with built-in middleware and listeners.
func New ¶
func New(listeners []listener.ApplicationListener, middlewares ...gin.HandlerFunc) *App
New Create a clean application, you can add some gin middlewares to the engine
func (*App) Interceptor ¶ added in v3.0.1
func (a *App) Interceptor(interceptor ...mvc.MethodInterceptor) *App
Interceptor Adds a global interceptor
func (*App) ReadConfig ¶
ReadConfig loads the configuration into the provided structure.
func (*App) ReadConfigSub ¶ added in v3.1.0
ReadConfigSub loads the sub-configuration into the provided structure.
func (*App) ShutdownWaitDelay ¶ added in v3.3.7
ShutdownWaitDelay sets the delay after the server has shut down (default is 0 seconds). This delay allows time for any post-shutdown tasks (such as cleanup, logging, etc.) to complete before the process exits.