dns

package
v0.0.0-...-b1b21d8 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: LGPL-3.0 Imports: 9 Imported by: 0

README

功能概述

  • 高速dns缓存服务,用以爬虫dns解析

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(options ...ClientOption) (*Client, error)

func (*Client) Run

func (obj *Client) Run(ctx context.Context) error

type ClientOption

type ClientOption struct {
	ListenAddr string //监听的地址;
	NameServer string //dns服务
	PoolNum    int    //处理最大并发数
	CacheTime  int64  //dns 缓存时间
	LocalAddr  string //本地网卡
}

Jump to

Keyboard shortcuts

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