sessionmanager

package
v0.0.0-...-ce94876 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2019 License: MIT, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IterateSessionFunc

type IterateSessionFunc func(session exchange.Fetcher)

type SessionManager

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

func New

func New() *SessionManager

func (*SessionManager) AddSession

func (sm *SessionManager) AddSession(session exchange.Fetcher)

func (*SessionManager) GetNextSessionID

func (sm *SessionManager) GetNextSessionID() uint64

func (*SessionManager) IterateSessions

func (sm *SessionManager) IterateSessions(iterate IterateSessionFunc)

IterateSessions loops through all managed sessions and applies the given IterateSessionFunc

func (*SessionManager) RemoveSession

func (sm *SessionManager) RemoveSession(session exchange.Fetcher)

Jump to

Keyboard shortcuts

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