Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrSubNotFound = errors.New("subscription not found")
)
Functions ¶
Types ¶
type Subscription ¶
type Subscription struct { Ch chan []byte // contains filtered or unexported fields }
func NewSub ¶
func NewSub(sessionID string) *Subscription
func (*Subscription) Close ¶
func (s *Subscription) Close()
func (*Subscription) Subscribe ¶
func (s *Subscription) Subscribe(subscribeTo ...string)
func (*Subscription) Unsubscribe ¶
func (s *Subscription) Unsubscribe(unsubscribeFrom ...string)
Click to show internal directories.
Click to hide internal directories.