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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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