urltest

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: GPL-2.0 Imports: 8 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func URLTest

func URLTest(ctx context.Context, link string, detour N.Dialer) (t uint16, err error)

Types

type History

type History struct {
	Time  time.Time `json:"time"`
	Delay uint16    `json:"delay"`
}

type HistoryStorage

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

func NewHistoryStorage

func NewHistoryStorage() *HistoryStorage

func (*HistoryStorage) DeleteURLTestHistory

func (s *HistoryStorage) DeleteURLTestHistory(tag string)

func (*HistoryStorage) LoadURLTestHistory

func (s *HistoryStorage) LoadURLTestHistory(tag string) *History

func (*HistoryStorage) StoreURLTestHistory

func (s *HistoryStorage) StoreURLTestHistory(tag string, history *History)

Jump to

Keyboard shortcuts

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