urltest

package
v1.8.0-rc.6 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: GPL-2.0 Imports: 9 Imported by: 16

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