diff --git a/matcher.go b/matcher.go index 7ac978f..f777eec 100644 --- a/matcher.go +++ b/matcher.go @@ -59,6 +59,10 @@ func (mc *MatchCtx) GetAttribute(key string) (value string, ok bool) { return } +func (mc *MatchCtx) GetAttributes() map[string]string { + return mc.attributes +} + func (mc *MatchCtx) SetAttribute(key string, value string) { mc.attributes[key] = value }