connect

package
v0.0.0-...-82a22e8 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: GPL-3.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProxyConfig

type ProxyConfig struct {
	Address    string
	Port       uint16
	Motd       *string
	Version    string
	Maxplayers *uint16
}

func NewProxyConfig

func NewProxyConfig(address string, port uint16, motd *string, version string, maxplayers *uint16) (this *ProxyConfig)

type ProxyConnect

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

func NewProxyConnect

func NewProxyConnect(addr *string, user *string, pass *string, proxy *ProxyConfig, done chan bool) (this *ProxyConnect)

func (*ProxyConnect) AddLocalPlayer

func (this *ProxyConnect) AddLocalPlayer(player string, uuid uuid.UUID) (ok int)

func (*ProxyConnect) HasServer

func (this *ProxyConnect) HasServer(name string) (val bool)

func (*ProxyConnect) MaxPlayers

func (this *ProxyConnect) MaxPlayers() (val uint16)

func (*ProxyConnect) OnRedirect

func (this *ProxyConnect) OnRedirect(handler RedirectHandler)

func (*ProxyConnect) Players

func (this *ProxyConnect) Players() (val uint16)

func (*ProxyConnect) QueryRemotePlayers

func (this *ProxyConnect) QueryRemotePlayers()

func (*ProxyConnect) RemoveLocalPlayer

func (this *ProxyConnect) RemoveLocalPlayer(player string, uuid uuid.UUID)

func (*ProxyConnect) ResendLocalPlayers

func (this *ProxyConnect) ResendLocalPlayers()

func (*ProxyConnect) Server

func (this *ProxyConnect) Server(name string) (val *Server)

type RedirectHandler

type RedirectHandler func(server string, player string)

type Server

type Server struct {
	Name        string
	Addr        string
	SecurityKey string
}

Jump to

Keyboard shortcuts

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