Documentation
¶
Index ¶
- func ValidatePlayername(s string, padding string) string
- type SessionManager
- func (sman *SessionManager) Cleanup()
- func (sman *SessionManager) Count() int
- func (sman *SessionManager) DelBySessionID(id string)
- func (sman *SessionManager) GetAllList() []*session.Session
- func (sman *SessionManager) GetBySessionID(id string) *session.Session
- func (sman *SessionManager) GetRangeStat() *rangestat.RangeStat
- func (sman SessionManager) String() string
- func (sman *SessionManager) ToWeb(w http.ResponseWriter, r *http.Request)
- func (sman *SessionManager) ToWebMid(w http.ResponseWriter, r *http.Request)
- func (sman *SessionManager) UpdateLap()
- func (sman *SessionManager) UpdateOrNew(sessionuuid string, remoteaddr string, nickname string) *session.Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidatePlayername ¶
Types ¶
type SessionManager ¶
type SessionManager struct {
// contains filtered or unexported fields
}
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 ¶
Click to show internal directories.
Click to hide internal directories.