proxy

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	Id   string                 `json:"id"`
	Meta map[string]interface{} `json:"meta"`
	// contains filtered or unexported fields
}

type Proxy

type Proxy struct {
	AgentsByRemoteIp map[string][]*Agent
	// contains filtered or unexported fields
}

TODO: Use channels to register/remove agents to prevent race conditions See: https://github.com/gorilla/websocket/blob/master/examples/chat/hub.go

func NewProxy

func NewProxy(mux *http.ServeMux, basePath string) *Proxy

Jump to

Keyboard shortcuts

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