sender

package
v0.0.0-...-9b4e82f Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2019 License: MIT Imports: 7 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalMessages = duplicator.MakeDuplicator("global-messages")

Functions

func RegisterChangeUpdate

func RegisterChangeUpdate(id string, changeChannel chan interface{}) error

func RunGlobalSender

func RunGlobalSender()

func SendChangeUpdate

func SendChangeUpdate(id string, changeNotify *change.ChangeNotify)

func SendDeleteObject

func SendDeleteObject(id string, deleteObject id.Identifiable)

func SendNewObject

func SendNewObject(id string, newObject id.Identifiable)

Types

type Sender

type Sender struct {
	NewObjects    *duplicator.ChannelDuplicator
	Updates       *duplicator.ChannelDuplicator
	Notifications *duplicator.ChannelDuplicator
	Deletes       *duplicator.ChannelDuplicator
	Output        *duplicator.ChannelDuplicator
	// contains filtered or unexported fields
}

func NewSender

func NewSender(userUuid, portfolioUuid string) *Sender

func (*Sender) CloseOutput

func (s *Sender) CloseOutput(ch chan interface{})

func (*Sender) GetOutput

func (s *Sender) GetOutput() chan interface{}

func (*Sender) RegisterUpdateInput

func (s *Sender) RegisterUpdateInput(ch chan interface{})

func (*Sender) Stop

func (s *Sender) Stop()

Jump to

Keyboard shortcuts

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