Documentation ¶
Index ¶
- Constants
- type Manager
- func (sm *Manager) HasAnyOpenSession() bool
- func (sm *Manager) HasOpenSession(pid peer.ID) bool
- func (sm *Manager) NumberOfSessions() int
- func (sm *Manager) OpenSession(pid peer.ID, from, count uint32) *Session
- func (sm *Manager) RemoveAllSessions()
- func (sm *Manager) Sessions() []*Session
- func (sm *Manager) SetExpiredSessionsAsUncompleted()
- func (sm *Manager) SetSessionCompleted(sid int) *Session
- func (sm *Manager) SetSessionUncompleted(sid int)
- func (sm *Manager) Stats() Stats
- func (sm *Manager) UpdateSessionLastActivity(sid int)
- type Session
- type Stats
- type Status
Constants ¶
View Source
const ( Open = Status(0) Completed = Status(2) Uncompleted = Status(1) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶ added in v1.1.4
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶ added in v1.1.4
func (*Manager) HasAnyOpenSession ¶ added in v1.1.4
func (*Manager) HasOpenSession ¶ added in v1.1.4
func (*Manager) NumberOfSessions ¶ added in v1.1.4
func (*Manager) OpenSession ¶ added in v1.1.4
func (*Manager) RemoveAllSessions ¶ added in v1.1.4
func (sm *Manager) RemoveAllSessions()
func (*Manager) SetExpiredSessionsAsUncompleted ¶ added in v1.1.4
func (sm *Manager) SetExpiredSessionsAsUncompleted()
func (*Manager) SetSessionCompleted ¶ added in v1.1.4
func (*Manager) SetSessionUncompleted ¶ added in v1.1.4
func (*Manager) UpdateSessionLastActivity ¶ added in v1.1.4
type Session ¶
Click to show internal directories.
Click to hide internal directories.