Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mapper ¶
type Mapper interface { // GetKey converts a request into an aggregated key // Returns error if the regex parsing in the config fails to compile or match // A DiscoveryRequest will always contain typeUrl // ADS will contain typeUrl https://github.com/envoyproxy/envoy/blob/master/api/envoy/api/v2/discovery.proto#L46 // Implicit xds requests will have typeUrl set because go-control-plane mutates the DiscoveryRequest // ref: https://github.com/envoyproxy/go-control-plane/blob/master/pkg/server/server.go#L310 GetKey(request transport.Request) (string, error) }
Mapper defines the interface that Maps an incoming request to an aggregation key
func New ¶
func New(config *aggregationv1.KeyerConfiguration, scope tally.Scope) Mapper
New constructs a concrete implementation for the Mapper interface
func NewMockMapper ¶
Click to show internal directories.
Click to hide internal directories.