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 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.
Click to show internal directories.
Click to hide internal directories.