Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Debug bool
Functions ¶
This section is empty.
Types ¶
type Metrics ¶ added in v0.0.5
type Metrics struct { Slack struct { Hello int64 `json:"hello"` Connecting int64 `json:"connecting"` Connected int64 `json:"connected"` Disconnect int64 `json:"disconnect"` } `json:"slack"` WebSocket struct { TotalConnections int64 `json:"total_connections"` CurrentConnections int64 `json:"current_connections"` } `json:"websocket"` Messages struct { Received int64 `json:"received_from_slack"` Delivered int64 `json:"delivered_to_websocket"` Unsupported int64 `json:"unsupported_from_slack"` WriteErrored int64 `json:"write_errored_to_websocket"` } `json:"messages"` }
type PubSub ¶
type PubSub struct { Subscribers map[string]*Subscriber // contains filtered or unexported fields }
func (*PubSub) Subscribe ¶
func (p *PubSub) Subscribe(clientID string, filter func(Message) bool) *Subscriber
func (*PubSub) Unsubscribe ¶
type StartResponse ¶
type Subscriber ¶
Click to show internal directories.
Click to hide internal directories.