selector

package
v2.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: MIT Imports: 5 Imported by: 31

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

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

Builder is a selector builder

func Client

func Client(ms ...middleware.Middleware) *Builder

Client selector middleware

func Server

func Server(ms ...middleware.Middleware) *Builder

Server selector middleware

func (*Builder) Build

func (b *Builder) Build() middleware.Middleware

Build is Builder's Build, for example: Server().Path(m1,m2).Build()

func (*Builder) Match added in v2.1.0

func (b *Builder) Match(fn MatchFunc) *Builder

Match is with Builder's match

func (*Builder) Path

func (b *Builder) Path(path ...string) *Builder

Path is with Builder's path

func (*Builder) Prefix

func (b *Builder) Prefix(prefix ...string) *Builder

Prefix is with Builder's prefix

func (*Builder) Regex

func (b *Builder) Regex(regex ...string) *Builder

Regex is with Builder's regex

type MatchFunc added in v2.1.0

type MatchFunc func(ctx context.Context, operation string) bool

Jump to

Keyboard shortcuts

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