matchers

package
v0.1.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2018 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

View Source
const LookupPartitionContextKey = strategyContextKey("stringLookup")

LookupPartitionContextKey is the StringLookup context key use this in your context.Context

View Source
const StringPredicateContextKey = strategyContextKey("stringPredicate")

StringPredicateContextKey is the StringPredicate context key use this in your context.Context

Variables

This section is empty.

Functions

func DefaultStringLookupFunc

func DefaultStringLookupFunc(ctx context.Context) string

DefaultStringLookupFunc implements the default string lookup partition based on single-value matching.

func StringPredicateMatcher

func StringPredicateMatcher(matchString string, caseInsensitive bool) func(ctx context.Context) bool

StringPredicateMatcher implements the string predicate matcher.

Types

This section is empty.

Jump to

Keyboard shortcuts

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