urltest

package
v1.9.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: GPL-2.0 Imports: 9 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) Close added in v1.4.0

func (s *HistoryStorage) Close() error

func (*HistoryStorage) DeleteURLTestHistory

func (s *HistoryStorage) DeleteURLTestHistory(tag string)

func (*HistoryStorage) LoadURLTestHistory

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

func (*HistoryStorage) SetHook added in v1.4.0

func (s *HistoryStorage) SetHook(hook chan<- struct{})

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