people

package
v0.0.1-a.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type People

type People struct {
	UUID       string          // token user id
	Valid      bool            // is temp user or valided user
	Connection *websocket.Conn // websocket connection
}

func (*People) Reset

func (people *People) Reset() *People

type Table

type Table map[string]*People
var Registration Table = make(Table)

func (Table) Add

func (table Table) Add(connection *websocket.Conn) (puid string)

func (Table) Exist

func (table Table) Exist(puid *string) (ok bool)

func (Table) GetPeople

func (table Table) GetPeople(puid *string) *People

func (Table) GetPeopleConnection

func (table Table) GetPeopleConnection(puid *string) *websocket.Conn

func (Table) Len

func (table Table) Len() int

func (Table) Remove

func (table Table) Remove(puid *string)

Jump to

Keyboard shortcuts

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