selector

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSelectorMiddleware

func NewSelectorMiddleware(matcher Matcher, middlewares ...gin.HandlerFunc) gin.HandlersChain

Types

type MatchFunc

type MatchFunc func(ctx *gin.Context) bool

func (MatchFunc) Match

func (m MatchFunc) Match(ctx *gin.Context) bool

type Matcher

type Matcher interface {
	Match(ctx *gin.Context) bool
}

func NewContextMatcher

func NewContextMatcher[T comparable](key string, value T) Matcher

func NewLogicalAndMatcher

func NewLogicalAndMatcher(matchers ...Matcher) Matcher

func NewLogicalNotMatcher

func NewLogicalNotMatcher(matcher Matcher) Matcher

func NewLogicalOrMatcher

func NewLogicalOrMatcher(matchers ...Matcher) Matcher

Jump to

Keyboard shortcuts

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