Documentation ¶
Overview ¶
Copyright 2016-2019 DutchSec (https://dutchsec.com/)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2016-2019 DutchSec (https://dutchsec.com/)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2016-2019 DutchSec (https://dutchsec.com/)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2016-2019 DutchSec (https://dutchsec.com/)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithConfig ¶
func WithConfig(c toml.Primitive, decoder TomlDecoder) func(Channel) error
Types ¶
type BusChannel ¶
type BusChannel struct { }
func NewBusChannel ¶
func NewBusChannel() *BusChannel
func (*BusChannel) Send ¶
func (bc *BusChannel) Send(evt event.Event)
type Channel ¶
Channel defines a interface which exposes a single method for delivering PushMessages to a giving underline service.
func FilterChannel ¶
func FilterChannel(channel Channel, fn FilterFunc) Channel
FilterChannel defines a struct which handles the delivery of giving messages to a specific sets of backend channels based on specific criteria.
func TokenChannel ¶
TokenChannel returns a Channel to set token value.
type ChannelFunc ¶
func Get ¶
func Get(key string) (ChannelFunc, bool)
func Register ¶
func Register(key string, fn ChannelFunc) ChannelFunc
type Filter ¶
Filter defines an interface which exposes a method for filtering specific messages by specific boundaries.
type FilterFunc ¶
FilterFunc defines a function for event filtering.
func RegexFilterFunc ¶
func RegexFilterFunc(field string, expressions []string) FilterFunc
RegexFilterFunc returns a function for filtering event values.