Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MultiMap ¶
MultiMap describes a set of events together with how those events should be processed. Most often, event types are mapped to URLs, but that is not required. Event values can be any string that is meaningful to an application.
func NestedToMultiMap ¶
NestedToMultiMap translates a map with potentially nested string keys into a MultiMap. This function is useful when unmarshalling from libraries that impose some meaning on a separator, like viper does with periods. Essentially, this function returns a MultiMap that is the result of "flattening" the given raw map.
The separator string must be nonempty. It is used as the separator for nested map keys, e.g. "foo.bar".
func (MultiMap) Add ¶
Add appends one or more values to an event type. If mappedTo is empty, this method does nothing. If the eventType doesn't exist, it is created.