controller

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 6 Imported by: 0

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.

Directories

Path Synopsis
Package auth provides authentication-related functionality for the application.
Package auth provides authentication-related functionality for the application.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL