room

package
v0.0.0-...-5f7400d Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2018 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	HasGitHub    bool
	HasOffice365 bool
	HasTest      bool
}

type Room

type Room struct {
	Server *sock.Server
	// contains filtered or unexported fields
}

func New

func New(config Config, db *database.Database) *Room

func (*Room) AddUser

func (r *Room) AddUser(username string) (string, error)

func (*Room) AuthCallback

func (room *Room) AuthCallback(w http.ResponseWriter, r *http.Request, allowed bool, user string)

func (*Room) IsUser

func (r *Room) IsUser(user, token string) bool

Jump to

Keyboard shortcuts

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