eventer

package
Version: v0.0.0-...-8c0eaba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2017 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Cadmium - multiprotocol crossplatform messenger. Copyright (c) 2017, Stanislav N aka pztrn. Copyright (c) 2017, Cadmium developers and contributors.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Cadmium - multiprotocol crossplatform messenger. Copyright (c) 2017, Stanislav N aka pztrn. Copyright (c) 2017, Cadmium developers and contributors.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Cadmium - multiprotocol crossplatform messenger. Copyright (c) 2017, Stanislav N aka pztrn. Copyright (c) 2017, Cadmium developers and contributors.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cc *context.Context)

Types

type Eventer

type Eventer struct {
	// contains filtered or unexported fields
}

func (*Eventer) AddEventHandler

func (e *Eventer) AddEventHandler(event_name string, handler *event.Event)

AddEventHandler adds a handler for desired event. This handler will be appended to list of currently existing handlers. If there was no event with such name - list will be created and handler will be placed at position 0.

func (*Eventer) Initialize

func (e *Eventer) Initialize()

Initialize initializes Eventer.

func (*Eventer) LaunchEvent

func (e *Eventer) LaunchEvent(event_name string, data map[string]string)

LaunchEvent launches desired event.

func (*Eventer) RemoveEventHandler

func (e *Eventer) RemoveEventHandler(event_name string, handler_name string)

RemoveEventHandler removes event handler for desired event. If handler or event wasn't found - no action is taken.

type EventerHandler

type EventerHandler struct{}

func (EventerHandler) AddEventHandler

func (eh EventerHandler) AddEventHandler(event_name string, handler *event.Event)

func (EventerHandler) Initialize

func (eh EventerHandler) Initialize()

func (EventerHandler) LaunchEvent

func (eh EventerHandler) LaunchEvent(event_name string, data map[string]string)

func (EventerHandler) RemoveEventHandler

func (eh EventerHandler) RemoveEventHandler(event_name string, handler_name string)

Directories

Path Synopsis
Cadmium - multiprotocol crossplatform messenger.
Cadmium - multiprotocol crossplatform messenger.
Cadmium - multiprotocol crossplatform messenger.
Cadmium - multiprotocol crossplatform messenger.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL