MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / PrefixesToMatches

Function PrefixesToMatches

x/x.go:1473–1482  ·  view source on GitHub ↗

PrefixesToMatches converts the prefixes for subscription to a list of match.

(prefixes [][]byte, ignore string)

Source from the content-addressed store, hash-verified

1471
1472// PrefixesToMatches converts the prefixes for subscription to a list of match.
1473func PrefixesToMatches(prefixes [][]byte, ignore string) []*badgerpb.Match {
1474 matches := make([]*badgerpb.Match, 0, len(prefixes))
1475 for _, prefix := range prefixes {
1476 matches = append(matches, &badgerpb.Match{
1477 Prefix: prefix,
1478 IgnoreBytes: ignore,
1479 })
1480 }
1481 return matches
1482}
1483
1484// LimiterConf is the configuration options for LimiterConf.
1485type LimiterConf struct {

Callers 1

SubscribeForUpdatesFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected