MCPcopy
hub / github.com/cloudflare/cloudflared / featureSelector

Struct featureSelector

features/selector.go:43–54  ·  view source on GitHub ↗

FeatureSelector determines if this account will try new features; loaded once during startup.

Source from the content-addressed store, hash-verified

41
42// FeatureSelector determines if this account will try new features; loaded once during startup.
43type featureSelector struct {
44 accountHash uint32
45 logger *zerolog.Logger
46 resolver resolver
47
48 staticFeatures staticFeatures
49 cliFeatures []string
50
51 // lock protects concurrent access to dynamic features
52 lock sync.RWMutex
53 remoteFeatures featuresRecord
54}
55
56func newFeatureSelector(ctx context.Context, accountTag string, logger *zerolog.Logger, resolver resolver, cliFeatures []string, pq bool, refreshFreq time.Duration) (*featureSelector, error) {
57 // Combine default features and user-provided features

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected