server

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: MIT Imports: 25 Imported by: 0

Documentation

Index

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 New

func New(dev bool) (*Server, error)

New ...

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) ListenAndServe

func (s *Server) ListenAndServe() error

ListenAndServe ...

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) Poll

func (s *Server) Poll(w http.ResponseWriter, r *http.Request)

Poll ...

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) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

Shutdown ...

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}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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