Documentation ¶
Index ¶
- type Buffer
- type Context
- type Marker
- type MarkerChan
- type PubSub
- func (ps *PubSub) AddPublisher(pub Publisher) error
- func (ps *PubSub) AddSubscriber(sub Subscriber) error
- func (ps *PubSub) Close()
- func (ps *PubSub) Pub(v interface{}) error
- func (ps *PubSub) PubChan(ch <-chan interface{}) (<-chan struct{}, error)
- func (ps *PubSub) PubSlice(vs []interface{}) error
- func (ps *PubSub) SubChan(ch chan<- interface{}) (chan<- struct{}, error)
- func (ps *PubSub) SubFunc(fn func(interface{})) (func(), error)
- type Publisher
- type ReaderFunc
- type Subscriber
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
func (*Buffer) FullReadTo ¶
func (b *Buffer) FullReadTo(rfn ReaderFunc) []interface{}
func (*Buffer) ReadTo ¶
func (b *Buffer) ReadTo(rfn ReaderFunc)
func (*Buffer) WriteSlice ¶
func (b *Buffer) WriteSlice(vs []interface{})
type Context ¶
type Context struct { Buffer *Buffer Done MarkerChan Close func() }
type MarkerChan ¶
type MarkerChan chan struct{}
type PubSub ¶
type PubSub struct {
// contains filtered or unexported fields
}
func (*PubSub) AddPublisher ¶
func (*PubSub) AddSubscriber ¶
func (ps *PubSub) AddSubscriber(sub Subscriber) error
type ReaderFunc ¶
type ReaderFunc func(interface{}) bool
type Subscriber ¶
Click to show internal directories.
Click to hide internal directories.