Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartWebServer ¶
StartWebServer starts echo web service
Types ¶
type Data ¶
type Data struct { Port int WSHandlerStatus *WSConnHandler WSHandlerSpeech *WSConnHandler Ctx context.Context }
Data keeps data required for service work
type WSConnHandler ¶
type WSConnHandler struct { Middleware Handler // contains filtered or unexported fields }
WSConnKeeper implements connection management
func (*WSConnHandler) HandleConnection ¶
func (kp *WSConnHandler) HandleConnection(ctx context.Context, conn *websocket.Conn, query string) error
HandleConnection loops until connection active and save connection with provided ID as key
Click to show internal directories.
Click to hide internal directories.