Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartStatusHandler ¶
func StartStatusHandler(ctx context.Context, data *HandlerData) (chan struct{}, error)
StartStatusHandler starts the event queue listener for status events returns channel for tracking if all jobs are finished
Types ¶
type Data ¶
type Data struct { Port int DB DB WSHandler WSConnHandler }
Data keeps data required for service work
type HandlerData ¶
type HandlerData struct { GueClient *gue.Client WorkerCount int DB StatusDB WSHandler WSConnHandler }
HandlerData keeps data required for handler
type WSConnHandler ¶
type WSConnHandler interface { HandleConnection(WsConn) error GetConnections(id string) ([]WsConn, bool) }
WSConnHandler WwbSocketConnection wrapper
type WSConnKeeper ¶
type WSConnKeeper struct {
// contains filtered or unexported fields
}
WSConnKeeper implements connection management
func (*WSConnKeeper) GetConnections ¶
func (kp *WSConnKeeper) GetConnections(id string) ([]WsConn, bool)
GetConnections returns saved connections by provided id
func (*WSConnKeeper) HandleConnection ¶
func (kp *WSConnKeeper) HandleConnection(conn WsConn) error
HandleConnection loops until connection active and save connection with provided ID as key
Click to show internal directories.
Click to hide internal directories.