sessions

package
v0.0.0-...-6dd300b Latest Latest
Warning

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

Go to latest
Published: May 22, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const Version string = "sessions:0.1"

Version is the current api version number

Variables

View Source
var ErrSessionNotFound = errors.New("Could not find the requested session")

ErrSessionNotFound is returned when the Session can't be found in redis

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is the http server instance

func NewServer

func NewServer(hostAddr, redisAddr string, image string, gameNodeSelector map[string]string, cpuLimit string) (*Server, error)

NewServer returns the HTTP Server instance

func (*Server) Start

func (s *Server) Start() error

Start starts the HTTP server

type Session

type Session struct {
	ID   string `json:"id" redis:"id"`
	Port int    `json:"port,omitempty" redis:"port"`
	IP   string `json:"ip,omitempty" redis:"ip"`
}

Session represents a game session

Directories

Path Synopsis
cmd
server
Server binary for session management
Server binary for session management

Jump to

Keyboard shortcuts

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