app

package
v0.0.0-...-83afde1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageResponse

type MessageResponse struct {
	Sender    string
	Recipient string
	Content   string
	CreatedAt string
}

type SocketResponse

type SocketResponse struct {
	Code int         `json:"code"`
	Msg  string      `json:"msg"`
	Data interface{} `json:"data"`
}

Response format

type Websocket

type Websocket struct {
	C *websocket.Conn
}

Websocket struct

func (*Websocket) MessageResponse

func (g *Websocket) MessageResponse(p []byte)

func (*Websocket) SocketResponse

func (g *Websocket) SocketResponse(errCode int, data interface{})

Response setting gin.JSON

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL