sessionmanager

package
v0.0.0-...-e449b39 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidatePlayername

func ValidatePlayername(s string, padding string) string

Types

type SessionManager

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

func New

func New(name string, size int, l *g2log.LogBase) *SessionManager

func (*SessionManager) Cleanup

func (sman *SessionManager) Cleanup()

func (*SessionManager) Count

func (sman *SessionManager) Count() int

func (*SessionManager) DelBySessionID

func (sman *SessionManager) DelBySessionID(id string)

func (*SessionManager) GetAllList

func (sman *SessionManager) GetAllList() []*session.Session

func (*SessionManager) GetBySessionID

func (sman *SessionManager) GetBySessionID(id string) *session.Session

func (*SessionManager) GetRangeStat

func (sman *SessionManager) GetRangeStat() *rangestat.RangeStat

func (SessionManager) String

func (sman SessionManager) String() string

func (*SessionManager) ToWeb

func (sman *SessionManager) ToWeb(w http.ResponseWriter, r *http.Request)

func (*SessionManager) ToWebMid

func (sman *SessionManager) ToWebMid(w http.ResponseWriter, r *http.Request)

func (*SessionManager) UpdateLap

func (sman *SessionManager) UpdateLap()

func (*SessionManager) UpdateOrNew

func (sman *SessionManager) UpdateOrNew(
	sessionuuid string,
	remoteaddr string,
	nickname string,
) *session.Session

Jump to

Keyboard shortcuts

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