Documentation ¶
Index ¶
- func RegisterGroupProviders(group string, providers ...interface{})
- func RegisterHandlerProviders(providers ...interface{})
- func RegisterHealthCheckProviders(providers ...interface{})
- func RegisterMiddlewareProviders(providers ...interface{})
- func RegisterProviders(providers ...interface{})
- func Start() (err error)
- type Application
- type Handler
- type HealthChecker
- type HealthServer
- type Middleware
- type ProviderFactory
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterGroupProviders ¶
func RegisterGroupProviders(group string, providers ...interface{})
func RegisterHandlerProviders ¶
func RegisterHandlerProviders(providers ...interface{})
func RegisterHealthCheckProviders ¶
func RegisterHealthCheckProviders(providers ...interface{})
func RegisterMiddlewareProviders ¶
func RegisterMiddlewareProviders(providers ...interface{})
func RegisterProviders ¶
func RegisterProviders(providers ...interface{})
Types ¶
type Application ¶
type Application interface { Start() error RegisterProviders(providers ...interface{}) RegisterGroupProviders(group string, providers ...interface{}) RegisterMiddlewareProviders(providers ...interface{}) RegisterHealthCheckProviders(providers ...interface{}) RegisterHandlerProviders(providers ...interface{}) }
func NewApplication ¶
func NewApplication() Application
type Handler ¶
type Handler interface {
MapRoutes(group *gin.RouterGroup)
}
type HealthChecker ¶
type HealthChecker interface { }
type HealthServer ¶
type HealthServer interface {
Start() error
}
type Middleware ¶
type Middleware interface {
NewHandler() gin.HandlerFunc
}
type ProviderFactory ¶
type ProviderFactory interface {
NewProvider() interface{}
}
Click to show internal directories.
Click to hide internal directories.