operations

package
v2.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Prefetch

func Prefetch(cfg *iqshell.Config, info PrefetchInfo)

func Refresh

func Refresh(cfg *iqshell.Config, info RefreshInfo)

Refresh 【cdnrefresh】刷新所有CDN节点

Types

type PrefetchInfo

type PrefetchInfo struct {
	UrlListFile string // url 信息文件
	SizeLimit   int    // 每次刷新最大 size 限制
	QpsLimit    int    // qps 限制
}

func (*PrefetchInfo) Check

func (info *PrefetchInfo) Check() *data.CodeError

type RefreshInfo

type RefreshInfo struct {
	ItemListFile string
	IsDir        bool
	SizeLimit    int
	QpsLimit     int
}

func (*RefreshInfo) Check

func (info *RefreshInfo) Check() *data.CodeError

Jump to

Keyboard shortcuts

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