middleware

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2025 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 SupplyChainMiddleware

type SupplyChainMiddleware struct {
	// contains filtered or unexported fields
}

SupplyChainMiddleware provides middleware for supply chain security endpoints

func NewSupplyChainMiddleware

func NewSupplyChainMiddleware(cfg *config.Config, log *logger.Logger) *SupplyChainMiddleware

NewSupplyChainMiddleware creates a new supply chain middleware instance

func (*SupplyChainMiddleware) SupplyChainAuth

func (m *SupplyChainMiddleware) SupplyChainAuth() gin.HandlerFunc

SupplyChainAuth validates supply chain specific authentication

func (*SupplyChainMiddleware) SupplyChainCORS

func (m *SupplyChainMiddleware) SupplyChainCORS() gin.HandlerFunc

SupplyChainCORS handles CORS for supply chain endpoints

func (*SupplyChainMiddleware) SupplyChainHeaders

func (m *SupplyChainMiddleware) SupplyChainHeaders() gin.HandlerFunc

SupplyChainHeaders adds security headers for supply chain endpoints

func (*SupplyChainMiddleware) SupplyChainLogging

func (m *SupplyChainMiddleware) SupplyChainLogging() gin.HandlerFunc

SupplyChainLogging logs supply chain specific operations

func (*SupplyChainMiddleware) SupplyChainRateLimit

func (m *SupplyChainMiddleware) SupplyChainRateLimit() gin.HandlerFunc

SupplyChainRateLimit implements rate limiting for supply chain endpoints

Jump to

Keyboard shortcuts

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