requester

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2016 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

URTator - Urban Terror server browser and game launcher, written in Go.

Copyright (c) 2016, Stanslav N. a.k.a pztrn (or p0z1tr0n) All rights reserved.

Licensed under Terms and Conditions of GNU General Public License version 3 or any higher. ToDo: put full text of license here.

URTator - Urban Terror server browser and game launcher, written in Go.

Copyright (c) 2016, Stanslav N. a.k.a pztrn (or p0z1tr0n) All rights reserved.

Licensed under Terms and Conditions of GNU General Public License version 3 or any higher. ToDo: put full text of license here.

URTator - Urban Terror server browser and game launcher, written in Go.

Copyright (c) 2016, Stanslav N. a.k.a pztrn (or p0z1tr0n) All rights reserved.

Licensed under Terms and Conditions of GNU General Public License version 3 or any higher. ToDo: put full text of license here.

Index

Constants

This section is empty.

Variables

View Source
var (
	Cache   *cache.Cache
	Eventer *eventer.Eventer
)

Functions

This section is empty.

Types

type Pooler

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

func (*Pooler) Initialize

func (p *Pooler) Initialize()

func (*Pooler) PingOneServer

func (p *Pooler) PingOneServer(server_address string)

func (*Pooler) PingServers

func (p *Pooler) PingServers(servers_type string)

Servers pinging pooler. Should be started as goroutine to prevent UI blocking.

func (*Pooler) UpdateOneServer

func (p *Pooler) UpdateOneServer(server_address string)

func (*Pooler) UpdateServers

func (p *Pooler) UpdateServers(servers_type string)

func (*Pooler) UpdateSpecificServer

func (p *Pooler) UpdateSpecificServer(server *datamodels.Server) error

Updates information about specific server.

type Requester

type Requester struct {
	// Pooler.
	Pooler *Pooler
	// contains filtered or unexported fields
}

func New

func New(c *cache.Cache, e *eventer.Eventer) *Requester

func (*Requester) Initialize

func (r *Requester) Initialize()

Requester's initialization.

func (*Requester) UpdateAllServers

func (r *Requester) UpdateAllServers()

Updates information about all available servers from master server and parses it to usable format.

func (*Requester) UpdateFavoriteServers

func (r *Requester) UpdateFavoriteServers()

func (*Requester) UpdateOneServer

func (r *Requester) UpdateOneServer(server_address string)

Jump to

Keyboard shortcuts

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