matchers

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Overview

Package matchers provides basic matchers for partitioned type strategies.

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