proxy

package
v0.0.0-...-7fe34ca Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proxy

type Proxy struct {
	Logger *log.Logger
	// contains filtered or unexported fields
}

Proxy connects to iguagile-engine via tcp on behalf of the client connecting via websocket.

func New

func New() *Proxy

New creates an instance of Proxy.

func (*Proxy) ServeHTTP

func (p *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP connects to iguagile-engine via tcp on behalf of the client connecting via websocket.

func (*Proxy) Start

func (p *Proxy) Start(address string) error

Start starts an proxy server.

type Room

type Room struct {
	RoomId          int32             `json:"room_id"`
	Server          Server            `json:"server"`
	ApplicationName string            `json:"application_name"`
	Version         string            `json:"version"`
	Password        string            `json:"password,omitempty"`
	Token           string            `json:"token,omitempty"`
	Information     map[string]string `json:"information,omitempty"`
}

Room has the information needed to connect to the room.

type Server

type Server struct {
	Host string `json:"server"`
	Port int32  `json:"port"`
}

Server is iguagile-engine server.

Jump to

Keyboard shortcuts

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