Documentation
¶
Index ¶
- type Hub
- func (h *Hub) Done()
- func (h *Hub) DoneWithContext(ctx context.Context)
- func (h *Hub) Init()
- func (h *Hub) Pub(msg interface{})
- func (h *Hub) PubWithContext(ctx context.Context, msg interface{})
- func (h *Hub) Start(ctx context.Context)
- func (h *Hub) Stop()
- func (h *Hub) StopNonBlock()
- func (h *Hub) StopWithContext(ctx context.Context)
- func (h *Hub) Sub(capacity int) (sub chan interface{})
- func (h *Hub) SubWithContext(ctx context.Context, capacity int) (sub chan interface{})
- func (h *Hub) Unsub(sub chan interface{})
- func (h *Hub) UnsubNonBlock(sub chan interface{})
- func (h *Hub) UnsubWithContext(ctx context.Context, sub chan interface{})
- func (h *Hub) UnsubWithTimeout(sub chan interface{}, timeout time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hub ¶
type Hub struct {
// contains filtered or unexported fields
}
func (*Hub) DoneWithContext ¶
func (*Hub) PubWithContext ¶ added in v0.0.2
func (*Hub) StopNonBlock ¶
func (h *Hub) StopNonBlock()
func (*Hub) StopWithContext ¶ added in v0.0.2
func (*Hub) SubWithContext ¶ added in v0.0.2
func (*Hub) UnsubNonBlock ¶
func (h *Hub) UnsubNonBlock(sub chan interface{})
func (*Hub) UnsubWithContext ¶ added in v0.0.2
func (*Hub) UnsubWithTimeout ¶
Click to show internal directories.
Click to hide internal directories.