Documentation ¶ Overview ¶ Char db Contains a table with all connected char-servers Index ¶ func Delete(key int) func List() map[int]*CharDB type CharDB func Get(key int) (entry *CharDB, ok bool) func (c *CharDB) Register(key int) 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 Source Files ¶ View all Source files db.go Click to show internal directories. Click to hide internal directories.