Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BroadcastData ¶
func BroadcastData(message []byte)
BroadcastData Broadcasts array of bytes to all Ws clients
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client User that successfully connects to Ws
type ClientManager ¶
type ClientManager struct {
// contains filtered or unexported fields
}
ClientManager Server Manager used to relay Websocket messages/chan/wait
func (*ClientManager) Send ¶
func (manager *ClientManager) Send(message []byte, ignore *Client)
Send sends Raw data to all clients except the one given
type ContentData ¶
ContentData Message raw data with Timestamp
type MatchServer ¶
MatchServer Options passed during creation
func (MatchServer) PushLogEntry ¶
func (ms MatchServer) PushLogEntry(entry log.Entry) error
PushLogEntry Broadcasts given Logrus Entry to all websocket clients
func (MatchServer) PushMatch ¶
func (ms MatchServer) PushMatch(match crawler.Match) error
PushMatch Broadcasts given Match to all websocket clients
func (MatchServer) PushState ¶
func (ms MatchServer) PushState(state []crawler.TaskState) error
PushState Broadcasts given CrawlerState to all websocket clients
func (MatchServer) Setup ¶
func (ms MatchServer) Setup()
Setup Sets up the MatchServer with it's listeners
Click to show internal directories.
Click to hide internal directories.