subscriber

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

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

Base struct

func (*Base) CloseAll

func (s *Base) CloseAll() (err error)

CloseAll handlers if io.Closer interface is implemented

func (*Base) Handle

func (s *Base) Handle(msg notificationcenter.Message, stopIfError bool) (err error)

Handle process the message with list of handlers

func (*Base) Subscribe

func (s *Base) Subscribe(h notificationcenter.Handler) error

Subscribe new handler

func (*Base) Unsubscribe

func (s *Base) Unsubscribe(h notificationcenter.Handler) (err error)

Unsubscribe some handler

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL