Documentation ¶
Index ¶
- type Broadcast
- func (bc *Broadcast) Publish(b []byte)
- func (bc *Broadcast) RegisterHandleFunc(id interface{}, handler func([]byte) []byte)
- func (bc *Broadcast) SendToID(recvID, sendID interface{}, payload []byte)
- func (bc *Broadcast) SendToIDResponse(recvID, sendID interface{}, payload []byte) []byte
- func (bc *Broadcast) Subscribe(id interface{}, c chan []byte)
- func (bc *Broadcast) SubscribeFunc(id interface{}, f func([]byte))
- func (bc *Broadcast) Unsubscribe(id interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Broadcast ¶
type Broadcast struct {
// contains filtered or unexported fields
}
func NewBroadcast ¶
func NewBroadcast() *Broadcast
func (*Broadcast) RegisterHandleFunc ¶
func (*Broadcast) SendToIDResponse ¶
func (*Broadcast) SubscribeFunc ¶
func (*Broadcast) Unsubscribe ¶
func (bc *Broadcast) Unsubscribe(id interface{})
Click to show internal directories.
Click to hide internal directories.