controllers

package
v0.0.0-...-61c5d39 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ChannelHistory = MustAuth(channelHistory)

ChannelHistory hold chat history in a channel

View Source
var ChannelNew = MustAuth(channelNew)

ChannelNew is used to create new chat channel

View Source
var ChannelView = MustAuth(channelView)

ChannelView is where we chat, it displays history along with current chat in the channel

View Source
var Login = MustNotAuth(login)

Login servers our login page

View Source
var LoginHandle = MustNotAuth(loginHandle)

LoginHandle redirect user to providers' login page & receive callback from them

View Source
var Logout = MustAuth(logout)

Logout uses to log User out

Functions

func ChannelList

func ChannelList(w http.ResponseWriter, r *http.Request)

ChannelList lists all the channel available to chat

func Index

func Index(w http.ResponseWriter, r *http.Request)

Index is the index page

func MustAuth

func MustAuth(handlerFunc http.HandlerFunc) http.HandlerFunc

MustAuth is a login required decorator for HandlerFunc

func MustNotAuth

func MustNotAuth(handlerFunc http.HandlerFunc) http.HandlerFunc

MustNotAuth is a anonymous required decorator for HandlerFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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