net

package
v0.0.0-...-3e7a88b Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2018 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WSChannelMap sync.Map // map[roomtoken]*WSChannel

)

Functions

func Run

func Run()

Types

type DbWorker

type DbWorker struct {
	Dsn      string
	Db       *sql.DB
	UserInfo userTB
}

func (*DbWorker) DeleteData

func (dbw *DbWorker) DeleteData(username, password string)

func (*DbWorker) InsertData

func (dbw *DbWorker) InsertData(username, password string, email string) bool

func (*DbWorker) QueryData

func (dbw *DbWorker) QueryData(username, password string) bool

func (*DbWorker) UpdateData

func (dbw *DbWorker) UpdateData(newUsername, newPassword string, newEmail string, username, password string) bool

type RespInfo

type RespInfo struct {
	Message string `json:"message,omitempty"`
	Status  int    `json:"status"`
}

type Template

type Template struct {
	// contains filtered or unexported fields
}

middleware html template render

func (*Template) Render

func (t *Template) Render(w io.Writer, name string, data interface{}, c echo.Context) error

Jump to

Keyboard shortcuts

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