Versions in this module Expand all Collapse all v2 v2.1.0 Dec 11, 2025 Changes in this version + func GetIPWithProxyHeaders(c *gin.Context) string + func GetIPWithValidatedProxyHeaders(c *gin.Context) string + func Logger() gin.HandlerFunc + type GinEvent struct + func (ge *GinEvent) GetEventType() event.EventType + type GinModule struct + func (gm *GinModule) AppendDataProcessor(processor ...IGinProcessor) + func (gm *GinModule) DELETE(relativePath string, handlers ...gin.HandlerFunc) gin.IRoutes + func (gm *GinModule) GET(relativePath string, handlers ...gin.HandlerFunc) gin.IRoutes + func (gm *GinModule) Init(addr string, handleTimeout time.Duration, engine *gin.Engine) + func (gm *GinModule) OnInit() error + func (gm *GinModule) PATCH(relativePath string, handlers ...gin.HandlerFunc) gin.IRoutes + func (gm *GinModule) POST(relativePath string, handlers ...gin.HandlerFunc) gin.IRoutes + func (gm *GinModule) Put(relativePath string, handlers ...gin.HandlerFunc) gin.IRoutes + func (gm *GinModule) SafeDELETE(relativePath string, handlers ...SafeHandlerFunc) gin.IRoutes + func (gm *GinModule) SafeGET(relativePath string, handlers ...SafeHandlerFunc) gin.IRoutes + func (gm *GinModule) SafePATCH(relativePath string, handlers ...SafeHandlerFunc) gin.IRoutes + func (gm *GinModule) SafePOST(relativePath string, handlers ...SafeHandlerFunc) gin.IRoutes + func (gm *GinModule) SafePut(relativePath string, handlers ...SafeHandlerFunc) gin.IRoutes + func (gm *GinModule) SetupDataProcessor(processor ...IGinProcessor) + func (gm *GinModule) Start() + func (gm *GinModule) StartTLS(certFile, keyFile string) + func (gm *GinModule) Stop(ctx context.Context) + type IGinProcessor interface + Process func(data *gin.Context) (*gin.Context, error) + type SafeContext struct + func (c *SafeContext) AsciiJSONAndDone(code int, obj any) + func (c *SafeContext) DataAndDone(code int, contentType string, data []byte) + func (c *SafeContext) DataFromReaderAndDone(code int, contentLength int64, contentType string, reader io.Reader, ...) + func (c *SafeContext) Done() + func (c *SafeContext) HTMLAndDone(code int, name string, obj any) + func (c *SafeContext) IndentedJSONAndDone(code int, obj any) + func (c *SafeContext) JSONAndDone(code int, obj any) + func (c *SafeContext) JSONPAndDone(code int, obj any) + func (c *SafeContext) ProtoBufAndDone(code int, obj any) + func (c *SafeContext) PureJSONAndDone(code int, obj any) + func (c *SafeContext) RedirectAndDone(code int, location string) + func (c *SafeContext) SecureJSONAndDone(code int, obj any) + func (c *SafeContext) StringAndDone(code int, format string, values ...any) + func (c *SafeContext) TOMLAndDone(code int, obj any) + func (c *SafeContext) XMLAndDone(code int, obj any) + func (c *SafeContext) YAMLAndDone(code int, obj any) + type SafeHandlerFunc func(*SafeContext)