selector

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: MIT Imports: 5 Imported by: 0

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

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

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