session

package
v0.0.0-...-67b0b38 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*Session) GetSessionId

func (s *Session) GetSessionId() string

func (*Session) Send

func (s *Session) Send(data []byte) error

func (*Session) SessionTimeoverCheck

func (s *Session) SessionTimeoverCheck() bool

func (*Session) UpdateActiveTime

func (s *Session) UpdateActiveTime()

type SessionList

type SessionList struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewSessionList

func NewSessionList() *SessionList

func (*SessionList) CloseSession

func (sl *SessionList) CloseSession(session *Session)

func (*SessionList) ForEachSession

func (sl *SessionList) ForEachSession(visit func(*Session))

func (*SessionList) GetSessionById

func (sl *SessionList) GetSessionById(sSessionId string) *Session

func (*SessionList) GetSessionCount

func (sl *SessionList) GetSessionCount() int

func (*SessionList) NewSession

func (sl *SessionList) NewSession(wsConn *websocket.Conn) (session *Session, err error)

Jump to

Keyboard shortcuts

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