Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRedirectServer ¶
NewRedirectServer creates a new http.Server that redirects all requests to the respective https equivalent.
Types ¶
type ServerConfig ¶
type Webserver ¶
func New ¶
func New( cfg ServerConfig, userService user.Service, cService conversations.Service, mService messaging.Service, socket *websocket.Server, session *session.Manager, limiterStore throttled.GCRAStore, logger log.Logger) *Webserver
New creates a new instance of type Webserver
func (*Webserver) SetupFileServer ¶
func (s *Webserver) SetupFileServer()
SetupFileServer sets up file server handlers for all webpages and its subpages.
func (*Webserver) SetupRestHandlers ¶
func (s *Webserver) SetupRestHandlers()
SetupRestHandlers registers all the REST routes
Click to show internal directories.
Click to hide internal directories.