notify

package
v0.10.1-alpha.7 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotificationStream

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

func NewNotificationStream

func NewNotificationStream() *NotificationStream

func (*NotificationStream) Add

func (ns *NotificationStream) Add(n *pbcom.Notification) (err error)

func (*NotificationStream) GetAll

func (n *NotificationStream) GetAll() (notifications []*pbcom.Notification, err error)

func (*NotificationStream) HasAny

func (n *NotificationStream) HasAny() bool

type Notifier

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

func NewNotifier

func NewNotifier() *Notifier

func (*Notifier) AddChannel

func (n *Notifier) AddChannel(chnl *channel.Channel)

func (*Notifier) Raise

func (n *Notifier) Raise(parentEntity, entity string, oper pbcom.Operation) (err error)

func (*Notifier) RaiseAsync

func (n *Notifier) RaiseAsync(parentEntity, entity string, oper pbcom.Operation) (err error)

Jump to

Keyboard shortcuts

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