Documentation ¶
Overview ¶
Package handlers provides HTTP handlers
Index ¶
- type ErrorCode
- type Handler
- func (h *Handler) AuthCode(c echo.Context) error
- func (h *Handler) AuthLogin(c echo.Context) error
- func (h *Handler) AuthRefresh(c echo.Context) error
- func (h *Handler) AuthRegister(c echo.Context) error
- func (h *Handler) AuthRegisterCode(c echo.Context) error
- func (h *Handler) CreateDirect(c echo.Context) error
- func (h *Handler) CreateInvite(c echo.Context) error
- func (h *Handler) CreateRoom(c echo.Context) error
- func (h *Handler) CreateServer(c echo.Context) error
- func (h *Handler) DeleteDirect(c echo.Context) error
- func (h *Handler) DeleteInvite(c echo.Context) error
- func (h *Handler) DeleteRoom(c echo.Context) error
- func (h *Handler) DeleteServer(c echo.Context) error
- func (h *Handler) ForwardSDP(c echo.Context) error
- func (h *Handler) GetAvatar(c echo.Context) error
- func (h *Handler) GetDirect(c echo.Context) error
- func (h *Handler) GetImage(c echo.Context) error
- func (h *Handler) GetInvite(c echo.Context) error
- func (h *Handler) GetKey(c echo.Context) error
- func (h *Handler) GetMessagingChannel(c echo.Context) error
- func (h *Handler) GetMessagingToken(c echo.Context) error
- func (h *Handler) GetProfile(c echo.Context) error
- func (h *Handler) GetRoom(c echo.Context) error
- func (h *Handler) GetRooms(c echo.Context) error
- func (h *Handler) GetServer(c echo.Context) error
- func (h *Handler) GetServers(c echo.Context) error
- func (h *Handler) GetUserServers(c echo.Context) error
- func (h *Handler) GetVideo(c echo.Context) error
- func (h *Handler) JoinCall(c echo.Context) error
- func (h *Handler) NewCall(c echo.Context) error
- func (h *Handler) Ping(c echo.Context) error
- func (h *Handler) PutUserServer(c echo.Context) error
- func (h *Handler) RunHubs()
- func (h *Handler) UpdateAvatar(c echo.Context) error
- func (h *Handler) UpdateDirect(c echo.Context) error
- func (h *Handler) UpdateRoom(c echo.Context) error
- func (h *Handler) UpdateServer(c echo.Context) error
- type Map
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorCode ¶
type ErrorCode string
ErrorCode represents different error codes returned by the API
const ( ErrInternal ErrorCode = "internal-error" )
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler provides an interface to handle different HTTP request
func (*Handler) AuthRefresh ¶
AuthRefresh refreshes the JWT token
func (*Handler) AuthRegister ¶
AuthRegister registers a new user
func (*Handler) AuthRegisterCode ¶
AuthRegisterCode enables 2FA for a user
func (*Handler) CreateDirect ¶
CreateDirect creates a direct room
func (*Handler) CreateInvite ¶
CreateInvite creates an invite link and returns it
func (*Handler) CreateRoom ¶
CreateRoom handles incoming requests to create a room
func (*Handler) CreateServer ¶
CreateServer handles incoming requests
func (*Handler) DeleteDirect ¶
DeleteDirect deletes a direct room identified by it's name
func (*Handler) DeleteInvite ¶
DeleteInvite deletes an invite link indentified by it's name
func (*Handler) DeleteRoom ¶
DeleteRoom handles incoming requests to delete one room
func (*Handler) DeleteServer ¶
DeleteServer deletes a server identified by it's hash
func (*Handler) ForwardSDP ¶
func (*Handler) GetMessagingChannel ¶
GetMessagingChannel opens a websocket used for messaging
func (*Handler) GetMessagingToken ¶
GetMessagingToken returns an auth token to subscribe to the messaging websocket
func (*Handler) GetProfile ¶
GetProfile returns the public profile information of a given user
func (*Handler) GetServers ¶
GetServers returns all servers
func (*Handler) GetUserServers ¶
GetUserServers returns all servers the user is a member of
func (*Handler) PutUserServer ¶
PutUserServer adds one new server to the users list of servers he is a member of
func (*Handler) UpdateAvatar ¶
func (*Handler) UpdateDirect ¶
UpdateDirect updates a direct room
func (*Handler) UpdateRoom ¶
UpdateRoom handles incoming requests to update one room
func (*Handler) UpdateServer ¶
UpdateServer updates a server