Documentation ¶
Index ¶
- func CORSMiddleware(origin string) gin.HandlerFunc
- func HandleAPIResponse() gin.HandlerFunc
- func RandomString(n int) string
- func RespondJSON(ctx *gin.Context, status int, message string, data interface{})
- func Run(reactor *Reactor, port int)
- func Validate(c *gin.Context, request any) map[string]string
- func ValidateURIParam(paramName string) gin.HandlerFunc
- type APIResponse
- type Reactor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CORSMiddleware ¶
func CORSMiddleware(origin string) gin.HandlerFunc
func RandomString ¶ added in v0.2.0
func RespondJSON ¶ added in v0.2.0
func ValidateURIParam ¶ added in v0.2.0
func ValidateURIParam(paramName string) gin.HandlerFunc
middleware
Types ¶
type APIResponse ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.