Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseController ¶
type BaseController struct { AppCtx *http.Context Logger *logger.Manager Redis *redis.Manager I18n *i18n.Manager }
BaseController Base Controller
func (*BaseController) Context ¶
func (b *BaseController) Context(c *gin.Context) context.Context
Context creates a new context with the trace ID from the gin.Context.
Parameters:
- c: *gin.Context - The gin context containing the trace ID.
Returns:
- context.Context: A new context with the trace ID added.
Click to show internal directories.
Click to hide internal directories.