urltest

package
v0.0.0-...-ab51429 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: GPL-2.0 Imports: 8 Imported by: 1

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

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

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