model

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByteSize

type ByteSize float64
const (
	B ByteSize = 1 << (10 * iota)
	KB
	MB
	GB
	TB
)

func (ByteSize) ToString

func (bs ByteSize) ToString() string

type SessionStatus

type SessionStatus struct {
	Username    string
	IPAddress   string
	SessionTime string
	TimeLeft    string
	BytesDown   ByteSize
	BytesUp     ByteSize
}

func SessionStatusFromHTML

func SessionStatusFromHTML(doc *goquery.Document) *SessionStatus

func (*SessionStatus) IsValid

func (ss *SessionStatus) IsValid() bool

Jump to

Keyboard shortcuts

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