middleware

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package middleware provides a set of middleware functions for Gin framework

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAction

func GetAction(ctx *gin.Context) string

GetAction retrieves the action value from the given context.

func SetAction

func SetAction(ctx *gin.Context, v string)

SetAction sets the action value in the given context.

Types

type OperationLog

type OperationLog interface {
	Write(*gin.Context)
}

OperationLog is an interface that defines the Write method for writing operation logs.

Jump to

Keyboard shortcuts

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