Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Apply ¶
Apply all apis to the gin engine @param e: gin.Engine @param autowired: whether enable autowired properties
func GetAnnotation ¶
GetAnnotation Gets the specified annotation Returns the value of this annotation, when the has is false mine this val is empty
func IsController ¶
func IsController(v interface{}) bool
IsController Determine whether it is controller
Types ¶
type Controller ¶
type Controller struct{}
Controller Declares the structure to be a controller you can add api methods to it
func (*Controller) PostConstruct ¶
func (c *Controller) PostConstruct()
type MethodInterceptor ¶
type MethodInterceptor interface { // Predicate true means intercept Predicate(ctx *gin.Context) bool // PreHandle triggered before method invocation // if you want to abort the current request, just call abort() and response inside the method PreHandle(ctx *gin.Context) // PostHandle triggered after method invocation // if you want to abort the current request, just call abort() and response inside the method PostHandle(ctx *gin.Context) }
MethodInterceptor API method interceptor You can do logical processing before and after method calls
Click to show internal directories.
Click to hide internal directories.