subscribe

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2018 License: LGPL-3.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

View Source
const (
	AddNewPeer = "addNewPeer"
	DeletePeer = "deletePeer"
)

Variables

View Source
var (
	ErrChType       = errors.New("error of channel type")
	ErrNotExistName = errors.New("not exist special subscription")
)

Functions

func Send added in v1.0.1

func Send(name string, value interface{})

func Sub added in v1.0.1

func Sub(name string, ch interface{})

func UnSub added in v1.0.1

func UnSub(name string, ch interface{})

Types

type CaseListItem added in v1.0.1

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

type CentralRouteSub added in v1.0.1

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

func NewCentralRouteSub added in v1.0.1

func NewCentralRouteSub() *CentralRouteSub

type Feed

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

func (*Feed) Send

func (f *Feed) Send(value interface{}) (nsent int)

func (*Feed) Subscribe

func (f *Feed) Subscribe(channel interface{}) Subscription

type Subscription

type Subscription interface {
	Err() <-chan error
	Unsubscribe()
}

Jump to

Keyboard shortcuts

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