Documentation ¶
Index ¶
- type Server
- func (s *Server) AuthLogin(w http.ResponseWriter, r *http.Request)
- func (s *Server) Authorize(w http.ResponseWriter, r *http.Request)
- func (s *Server) CreateChat(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetChats(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetLastMessages(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetUsers(w http.ResponseWriter, r *http.Request)
- func (s *Server) JoinChat(w http.ResponseWriter, r *http.Request)
- func (s *Server) KeepAlive(w http.ResponseWriter, r *http.Request)
- func (s *Server) LeaveChat(w http.ResponseWriter, r *http.Request)
- func (s *Server) ListenAndServe() error
- func (s *Server) Login(w http.ResponseWriter, r *http.Request)
- func (s *Server) Logout(w http.ResponseWriter, r *http.Request)
- func (s *Server) Poll(w http.ResponseWriter, r *http.Request)
- func (s *Server) PostMessage(w http.ResponseWriter, r *http.Request)
- func (s *Server) Register(w http.ResponseWriter, r *http.Request)
- func (s *Server) RemoveChat(w http.ResponseWriter, r *http.Request)
- func (s *Server) RequestResetPassword(w http.ResponseWriter, r *http.Request)
- func (s *Server) ResetPassword(w http.ResponseWriter, r *http.Request)
- func (s *Server) Shutdown(ctx context.Context) error
- func (s *Server) Static(w http.ResponseWriter, r *http.Request)
- func (s *Server) VerifyEmail(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server ...
func (*Server) AuthLogin ¶
func (s *Server) AuthLogin(w http.ResponseWriter, r *http.Request)
AuthLogin should be used always after AuthOnly middleware
func (*Server) Authorize ¶
func (s *Server) Authorize(w http.ResponseWriter, r *http.Request)
Authorize ...
func (*Server) CreateChat ¶
func (s *Server) CreateChat(w http.ResponseWriter, r *http.Request)
CreateChat ...
func (*Server) GetChats ¶
func (s *Server) GetChats(w http.ResponseWriter, r *http.Request)
GetChats ...
func (*Server) GetLastMessages ¶
func (s *Server) GetLastMessages(w http.ResponseWriter, r *http.Request)
GetLastMessages ...
func (*Server) GetUsers ¶
func (s *Server) GetUsers(w http.ResponseWriter, r *http.Request)
GetUsers ...
func (*Server) JoinChat ¶
func (s *Server) JoinChat(w http.ResponseWriter, r *http.Request)
JoinChat ...
func (*Server) KeepAlive ¶
func (s *Server) KeepAlive(w http.ResponseWriter, r *http.Request)
KeepAlive ...
func (*Server) LeaveChat ¶
func (s *Server) LeaveChat(w http.ResponseWriter, r *http.Request)
LeaveChat ...
func (*Server) Login ¶
func (s *Server) Login(w http.ResponseWriter, r *http.Request)
Login - without password!
func (*Server) Logout ¶
func (s *Server) Logout(w http.ResponseWriter, r *http.Request)
Logout - without password!
func (*Server) PostMessage ¶
func (s *Server) PostMessage(w http.ResponseWriter, r *http.Request)
PostMessage ...
func (*Server) Register ¶
func (s *Server) Register(w http.ResponseWriter, r *http.Request)
Register ...
func (*Server) RemoveChat ¶
func (s *Server) RemoveChat(w http.ResponseWriter, r *http.Request)
RemoveChat ...
func (*Server) RequestResetPassword ¶
func (s *Server) RequestResetPassword(w http.ResponseWriter, r *http.Request)
RequestResetPassword ...
func (*Server) ResetPassword ¶
func (s *Server) ResetPassword(w http.ResponseWriter, r *http.Request)
ResetPassword ...
func (*Server) Static ¶
func (s *Server) Static(w http.ResponseWriter, r *http.Request)
Static serves static files
func (*Server) VerifyEmail ¶
func (s *Server) VerifyEmail(w http.ResponseWriter, r *http.Request)
VerifyEmail .../{username}/{activationToken}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.