Help us shape the future of Go! Take the 2026 Go Developer Survey

server

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2021 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 Server

type Server struct {
	Config    config.Config
	Webspaces *webspace.Manager
	// contains filtered or unexported fields
}

Server is the main webspaced server struct

func NewServer

func NewServer(config config.Config) *Server

NewServer returns an initialized Server

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

Start begins listening

func (*Server) Stop

func (s *Server) Stop(ctx context.Context) error

Stop shuts down the server and listener

type UserClaims

type UserClaims struct {
	jwt.StandardClaims
	IsAdmin bool `json:"is_admin"`
	Version uint `json:"version"`
}

UserClaims represents claims in an auth JWT

Jump to

Keyboard shortcuts

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