Documentation
¶
Overview ¶
Package helper provides utility functions and types to assist in building the application.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsController ¶
AsController is a helper function to annotate a function as a controller.
func AsHealthIndicator ¶
AsHealthIndicator is a helper function to annotate a function as a health indicator.
func PointerFunc ¶
func PointerFunc[T any](a T) func() *T
PointerFunc is a generic function that returns a function that returns a pointer to the input value. It is a helper function to generate a function that returns a pointer to the input value. It is used to provide a function as a interface.
Types ¶
type Controller ¶
type Controller interface {
RoutesInfo() gin.RoutesInfo
}
Controller is an interface that defines the methods for handling HTTP requests.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package lifecycle provides application lifecycle management.
|
Package lifecycle provides application lifecycle management. |
|
Package management provides management HTTP server functionality.
|
Package management provides management HTTP server functionality. |
Click to show internal directories.
Click to hide internal directories.