controllers

package
v0.0.0-...-2d91a95 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2017 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalSessions *session.Manager

GlobalSessions is a variable for store session in this system

View Source
var Lsc = &LogSocketController{
	connPool: make(map[string]*ws.Conn),
	lvPool:   make(map[string]*LogView),
}
View Source
var (
	Sc = &SocketController{
		connPool:  make(map[string]*ws.Conn),
		wchanPool: make(map[string]*Wchan),
	}
)

Functions

func Accessible

func Accessible(c echo.Context) error

Accessible is a ...

func AppInit

func AppInit()

func Auth

func Auth(c echo.Context) (err error)

Auth is a ...

func Logout

func Logout(c echo.Context) (err error)

Logout is a function for ....

func Register

func Register(c echo.Context) (err error)

Register is a function for ....

func Restricted

func Restricted(c echo.Context) error

Restricted is a ...

func Search(c echo.Context) (err error)

Search is a function for ....

func WSHandler

func WSHandler(c echo.Context) (err error)

WSHandler is a func for ...

func WSLogHandler

func WSLogHandler(c echo.Context) (err error)

WSLogHandler is a func for log send api ...

Types

type LogSocketController

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

LogSocketController :

func (*LogSocketController) Add

func (logSocketController *LogSocketController) Add(sessID string, conn *ws.Conn)

Add :

func (*LogSocketController) Remove

func (logSocketController *LogSocketController) Remove(sessID string, conn *ws.Conn)

Remove :

func (*LogSocketController) Write

func (logSocketController *LogSocketController) Write(p []byte) (int, error)

type LogView

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

set all log output locations to Log

func (*LogView) Sprint

func (logView *LogView) Sprint() string

func (*LogView) Write

func (logView *LogView) Write(p []byte) (int, error)

type SocketController

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

func (*SocketController) Add

func (socketController *SocketController) Add(sessID string, conn *ws.Conn)

func (*SocketController) GetConn

func (socketController *SocketController) GetConn(sessID string) *ws.Conn

func (*SocketController) GetWchan

func (socketController *SocketController) GetWchan(sessID string) *Wchan

func (*SocketController) Remove

func (socketController *SocketController) Remove(sessID string, conn *ws.Conn)

func (*SocketController) Write

func (socketController *SocketController) Write(sessID string, void map[string]interface{}, to ...int)

type Wchan

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

Jump to

Keyboard shortcuts

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