Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertBytesToMap ¶
ConvertBytesToMap converts byte array into map interface.
func ConvertInterfaceToJSONBytes ¶
ConvertInterfaceToJSONBytes converts any interface to json bytes.
Types ¶
type GetSamplesAPI ¶
type GetSamplesAPI interface { HanldeWebSocket(context *gin.Context) HandleMessage(conn *websocket.Conn, messageType int, messageBytes []byte) }
GetSamplesAPI is the interface for GetSamplesAPI.
type GetSamplesAPIImpl ¶
type GetSamplesAPIImpl struct {
Interactor core.GetSamplesInteractor
}
GetSamplesAPIImpl is the implementation of GetSamplesAPI interface.
func (GetSamplesAPIImpl) GetUgrader ¶
func (api GetSamplesAPIImpl) GetUgrader() websocket.Upgrader
GetUgrader .
func (GetSamplesAPIImpl) HandleMessage ¶
func (api GetSamplesAPIImpl) HandleMessage(conn *websocket.Conn, messageType int, messageBytes []byte)
HandleMessage handles message from client.
func (GetSamplesAPIImpl) HanldeWebSocket ¶
func (api GetSamplesAPIImpl) HanldeWebSocket(context *gin.Context)
HanldeWebSocket handles websocket connection.
Click to show internal directories.
Click to hide internal directories.