session

package
v0.0.0-...-6ba995b Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Clients = &Connections{
	List: make(map[string]*Session),
	Auth: &auth.Auth{},
}

Functions

This section is empty.

Types

type Connections

type Connections struct {
	sync.RWMutex
	List map[string]*Session
	Auth auth.IAuth
}

type Session

type Session struct {
	Conn     net.Conn
	ClientID string
	Auth     bool
	sync.RWMutex
	Done       bool
	User, Pass string
	Stop       chan *bool
}

func NewSession

func NewSession(clientID string, conn net.Conn, stop chan *bool) *Session

func (*Session) Run

func (s *Session) Run()

Jump to

Keyboard shortcuts

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