Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Hub *Hub //can access messaging hub via <client>.Hub.Messages
Messages *hub.Client
Context context.Context
Cancel context.CancelFunc
Websocket *reconws.ReconWs
File string
}
Client represents a client for sending outgoing messages
type Hub ¶
type Hub struct {
Messages *agg.Hub
Clients map[string]*Client //map Id string to client
Rules map[string]Rule //map Id string to Rule
Add chan Rule
Delete chan string //Id string
Broadcast chan hub.Message //for messages incoming from the websocket server(s)
}
Hub represents a messaging hub
Click to show internal directories.
Click to hide internal directories.