Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var KnownTags = struct { Error string Warning string Notification string }{ Error: "error", Warning: "warning", Notification: "notification", }
Functions ¶
This section is empty.
Types ¶
type MessageFilter ¶
type MessageFilter struct { Type MessageFilterType Value string }
func (*MessageFilter) Match ¶
func (this *MessageFilter) Match(message Message) bool
type MessageFilterType ¶
type MessageFilterType string
const SenderFilter MessageFilterType = "sender"
const TagFilter MessageFilterType = "tag"
type Subscription ¶
type Subscription struct { Key string `json:"key"` //used to identify the subscription Receiver string `json:"receiver"` DistinctTimeWindow string `json:"distinct_time_window"` DistinctTimeWindowDuration time.Duration `json:"-"` Filter []MessageFilter `json:"filter"` //subscription is a match if no filter is not a match AdditionalReceiverInfo string `json:"additional_receiver_info"` //it is the receivers concern to interpret this field however it needs to Disabled bool `json:"disabled"` }
func (*Subscription) Match ¶
func (this *Subscription) Match(message Message) bool
Click to show internal directories.
Click to hide internal directories.