Documentation ¶
Index ¶
- func PublishUsingBrokerInContext(ctx context.Context, event Event) error
- type Broker
- func (b *Broker) Close()
- func (b *Broker) Middleware(next http.Handler) http.Handler
- func (b *Broker) Publish(e Event)
- func (b *Broker) ServeHTTPForChannel(w http.ResponseWriter, r *http.Request)
- func (b *Broker) ServeHTTPForChannelList(w http.ResponseWriter, r *http.Request)
- func (b *Broker) SubscribeToChannel(channelUUID string) chan Event
- func (b *Broker) SubscribeToChannelListUpdates(userUUID string) chan Event
- func (b *Broker) Unsubscribe(c chan Event)
- type ChatService
- type Event
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Broker ¶
type Broker struct {
// contains filtered or unexported fields
}
func (*Broker) ServeHTTPForChannel ¶
func (b *Broker) ServeHTTPForChannel(w http.ResponseWriter, r *http.Request)
func (*Broker) ServeHTTPForChannelList ¶
func (b *Broker) ServeHTTPForChannelList(w http.ResponseWriter, r *http.Request)
func (*Broker) SubscribeToChannel ¶
func (*Broker) SubscribeToChannelListUpdates ¶
func (*Broker) Unsubscribe ¶
type ChatService ¶
Click to show internal directories.
Click to hide internal directories.