session

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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 Session

type Session struct {
	SessionID int
	Status    Status
	PeerID    peer.ID
	From      uint32
	To        uint32
	StartedAt time.Time
}

func NewSession

func NewSession(id int, peerID peer.ID, from, to uint32) *Session

func (*Session) Range

func (s *Session) Range() (uint32, uint32)

type Status

type Status int

Jump to

Keyboard shortcuts

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