netcheck

package
v0.0.0-...-2f1cb99 Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPDBReader

type IPDBReader interface {
	io.ReadCloser
	io.ReaderAt
}

Implement db reader interface

type IPDBReaderAt

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

func (IPDBReaderAt) Close

func (r IPDBReaderAt) Close() error

func (IPDBReaderAt) Read

func (r IPDBReaderAt) Read(p []byte) (n int, err error)

func (IPDBReaderAt) ReadAt

func (r IPDBReaderAt) ReadAt(p []byte, off int64) (n int, err error)

type NetCheckService

type NetCheckService struct {
	types.Service
	// contains filtered or unexported fields
}

func Service

func Service() *NetCheckService

func (*NetCheckService) Check

func (s *NetCheckService) Check(ip string) (ip2proxy.IP2ProxyRecord, error)

func (*NetCheckService) Start

func (s *NetCheckService) Start() (types.Status, error)

func (*NetCheckService) Stop

func (s *NetCheckService) Stop() (types.Status, error)

Jump to

Keyboard shortcuts

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