char_db

package
v0.0.0-...-fb597f4 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2014 License: GPL-2.0 Imports: 1 Imported by: 1

Documentation

Overview

Char db Contains a table with all connected char-servers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(key int)

Delete from char_db

func List

func List() map[int]*CharDB

Return an list with all char-servers

Types

type CharDB

type CharDB struct {
	Name  string //char-serv name
	Ip    uint32 //char-serv IP
	Port  uint16 //char-serv rt
	Users uint16 // user count on this server
	Type  uint16 // 0=normal, 1=maintenance, 2=over 18, 3=paying, 4=P2P
	New   uint16 // should display as 'new'?
}

Structure

func Get

func Get(key int) (entry *CharDB, ok bool)

Retrive from char_db

func (*CharDB) Register

func (c *CharDB) Register(key int)

Register structure to auth_db map

Jump to

Keyboard shortcuts

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