Documentation ¶
Index ¶
- Variables
- type Server
- func (s *Server) ActivateUserHandler(w http.ResponseWriter, r *http.Request)
- func (s *Server) GenerateAuthTokenHandler(w http.ResponseWriter, r *http.Request)
- func (s *Server) GenerateOTPHandler(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetByUniqueFieldHandler(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetConversationsHandler(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetCurrentActiveUserHandler(w http.ResponseWriter, r *http.Request)
- func (s *Server) RegisterUserHandler(w http.ResponseWriter, r *http.Request)
- func (s *Server) SearchUserHandler(w http.ResponseWriter, r *http.Request)
- func (s *Server) Serve() error
- func (s *Server) ShutdownCleanup()
- func (s *Server) UpdateUserHandler(w http.ResponseWriter, r *http.Request)
- func (s *Server) WebsocketSubscribeHandler(w http.ResponseWriter, r *http.Request)
- func (s *Server) WebsocketSubscribeHandlerDeferFunc(reqCtx context.Context, conn *websocket.Conn)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrAlreadySubscribed = errors.New("already subscribed")
)
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { Config *utility.Config BackgroundTask *common.BackgroundTask Facade *facade.Facade SubsMu sync.Mutex Subscribers map[string]*domain.User // contains filtered or unexported fields }
func (*Server) ActivateUserHandler ¶
func (s *Server) ActivateUserHandler(w http.ResponseWriter, r *http.Request)
func (*Server) GenerateAuthTokenHandler ¶
func (s *Server) GenerateAuthTokenHandler(w http.ResponseWriter, r *http.Request)
func (*Server) GenerateOTPHandler ¶
func (s *Server) GenerateOTPHandler(w http.ResponseWriter, r *http.Request)
func (*Server) GetByUniqueFieldHandler ¶
func (s *Server) GetByUniqueFieldHandler(w http.ResponseWriter, r *http.Request)
func (*Server) GetConversationsHandler ¶
func (s *Server) GetConversationsHandler(w http.ResponseWriter, r *http.Request)
func (*Server) GetCurrentActiveUserHandler ¶
func (s *Server) GetCurrentActiveUserHandler(w http.ResponseWriter, r *http.Request)
func (*Server) RegisterUserHandler ¶
func (s *Server) RegisterUserHandler(w http.ResponseWriter, r *http.Request)
func (*Server) SearchUserHandler ¶
func (s *Server) SearchUserHandler(w http.ResponseWriter, r *http.Request)
func (*Server) ShutdownCleanup ¶
func (s *Server) ShutdownCleanup()
func (*Server) UpdateUserHandler ¶
func (s *Server) UpdateUserHandler(w http.ResponseWriter, r *http.Request)
func (*Server) WebsocketSubscribeHandler ¶
func (s *Server) WebsocketSubscribeHandler(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.