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 ¶
Types ¶
type Eventer ¶
type Eventer struct {
// contains filtered or unexported fields
}
func (*Eventer) AddEventHandler ¶
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) LaunchEvent ¶
LaunchEvent launches desired event.
func (*Eventer) RemoveEventHandler ¶
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. |