cache

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: 6 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.

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 (
	Database *database.Database
	Eventer  *event.Eventer
)

Functions

This section is empty.

Types

type Cache

type Cache struct {
	// Profiles cache.
	Profiles map[string]*cachemodels.Profile
	// Servers cache.
	Servers map[string]*cachemodels.Server
}

func New

func New(d *database.Database, e *event.Eventer) *Cache

func (*Cache) CreateProfile

func (c *Cache) CreateProfile(name string)

func (*Cache) CreateServer

func (c *Cache) CreateServer(addr string)

func (*Cache) FlushProfiles

func (c *Cache) FlushProfiles(data map[string]string)

func (*Cache) FlushServers

func (c *Cache) FlushServers(data map[string]string)

Flush servers to database.

func (*Cache) Initialize

func (c *Cache) Initialize()

func (*Cache) LoadProfiles

func (c *Cache) LoadProfiles(data map[string]string)

func (*Cache) LoadServers

func (c *Cache) LoadServers(data map[string]string)

Jump to

Keyboard shortcuts

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