server

package
v0.0.0-...-650c96b Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthToken

type AuthToken struct {
	AccessToken  string `json:"access_token"`
	ExpiresIn    uint   `json:"expires_in"`
	RefreshToken string `json:"refresh_token"`
	Scope        string `json:"scope"`
}

AuthToken is a struct containing the OAuth token details for an authorized user

type Server

type Server struct {
	DB          *gorm.DB
	Hub         *ws.Hub
	RoomManager *room.Manager
	// contains filtered or unexported fields
}

Server is the HTTP server object

func NewServer

func NewServer() *Server

NewServer creates a server

func (*Server) Run

func (s *Server) Run(host string)

Run runs the HTTP server

Jump to

Keyboard shortcuts

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