http

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PingTicker

func PingTicker(ctx context.Context, cancelFunc context.CancelFunc, pingChan chan<- string, ip string)

Types

type LoginHandler

type LoginHandler struct {
	URL      string
	Username string
	Password string
	UseIP    bool
}

func (*LoginHandler) Init

func (lh *LoginHandler) Init() error

func (*LoginHandler) Login

func (lh *LoginHandler) Login() (int, error)

type SessionStatusDiff

type SessionStatusDiff struct {
	BytesDown model.ByteSize
	BytesUp   model.ByteSize
}

type SessionStatusHandler

type SessionStatusHandler struct {
	URL   string
	UseIP bool
	// contains filtered or unexported fields
}

func (*SessionStatusHandler) Diff

func (*SessionStatusHandler) GetHistory

func (sh *SessionStatusHandler) GetHistory() []model.SessionStatus

func (*SessionStatusHandler) GetSessionStatus

func (sh *SessionStatusHandler) GetSessionStatus(saveHistory bool) (int, *model.SessionStatus, error)

func (*SessionStatusHandler) Init

func (sh *SessionStatusHandler) Init() error

func (*SessionStatusHandler) ResetHistory

func (sh *SessionStatusHandler) ResetHistory()

Jump to

Keyboard shortcuts

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