Documentation ¶
Index ¶
- Variables
- func ChannelCreateChatHandler(w http.ResponseWriter, r *http.Request)
- func CreateChannelHandler(w http.ResponseWriter, r *http.Request)
- func DetailChannelHandler(w http.ResponseWriter, r *http.Request)
- func JSONView(w http.ResponseWriter, data interface{}, statusCode int)
- func ListenChannelHandler(w http.ResponseWriter, r *http.Request)
- func LoginHandler(w http.ResponseWriter, r *http.Request)
- func SearchChannelHandler(w http.ResponseWriter, r *http.Request)
- func Serve()
- func VerifyLoginHandler(w http.ResponseWriter, r *http.Request)
- type Client
- type FileSystem
- type Hub
Constants ¶
This section is empty.
Variables ¶
View Source
var ChannelHub map[string]*Hub
Functions ¶
func ChannelCreateChatHandler ¶
func ChannelCreateChatHandler(w http.ResponseWriter, r *http.Request)
func CreateChannelHandler ¶
func CreateChannelHandler(w http.ResponseWriter, r *http.Request)
func DetailChannelHandler ¶
func DetailChannelHandler(w http.ResponseWriter, r *http.Request)
func JSONView ¶
func JSONView(w http.ResponseWriter, data interface{}, statusCode int)
func ListenChannelHandler ¶
func ListenChannelHandler(w http.ResponseWriter, r *http.Request)
func LoginHandler ¶
func LoginHandler(w http.ResponseWriter, r *http.Request)
func SearchChannelHandler ¶
func SearchChannelHandler(w http.ResponseWriter, r *http.Request)
func VerifyLoginHandler ¶
func VerifyLoginHandler(w http.ResponseWriter, r *http.Request)
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a middleman between the websocket connection and the hub.
type FileSystem ¶
type FileSystem struct {
// contains filtered or unexported fields
}
FileSystem custom file system handler
Click to show internal directories.
Click to hide internal directories.