manager

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PCUserAgentPool = []string{
		"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.67",
		"Mozilla/5.0 (Macintosh; Intel Mac OS X 14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 Edg/125.0.0.0",
		"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36 Edg/139.0.0.0",
		"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0",
		"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36 Edg/124.0.0.0",
		"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 OPR/110.0.0.0",
		"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36 OPR/109.0.0.0",
		"Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_8; en-us) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50",
		"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_0) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11",
		"Mozilla/5.0 (Macintosh; Intel Mac OS X 14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Safari/605.1.15",
		"Mozilla/5.0 (Macintosh; Intel Mac OS X 14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36",
		"Mozilla/5.0 (Macintosh; Intel Mac OS X 13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36",
		"Mozilla/5.0 (Macintosh; Intel Mac OS X 14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Safari/605.1.15",
		"Mozilla/5.0 (Macintosh; Intel Mac OS X 13_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.5 Safari/605.1.15",
		"Mozilla/5.0 (Macintosh; Intel Mac OS X 12_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6 Safari/605.1.15",
		"Mozilla/5.0 (Windows; U; Windows NT 6.1; en-us) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50",
		"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36",
		"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36",
		"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
		"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36",
		"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36",
		"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36",
		"Mozilla/5.0 (Macintosh; Intel Mac OS X 14.5; rv:126.0) Gecko/20100101 Firefox/126.0",
		"Mozilla/5.0 (Macintosh; Intel Mac OS X 14.5; rv:125.0) Gecko/20100101 Firefox/125.0",
		"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv,2.0.1) Gecko/20100101 Firefox/4.0.1",
		"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0",
		"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0",
		"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0",
		"Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0",
		"Mozilla/5.0 (Windows NT 6.1; rv,2.0.1) Gecko/20100101 Firefox/4.0.1",
	}
)

Functions

This section is empty.

Types

type CookieManager

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

func GetCookieManager

func GetCookieManager() *CookieManager

func (*CookieManager) Get

func (r *CookieManager) Get(ctx context.Context, platform string) string

func (*CookieManager) Remove

func (r *CookieManager) Remove(ctx context.Context, platform string)

func (*CookieManager) Save

func (r *CookieManager) Save(ctx context.Context, platform, cookie string)

type FileCheckManager added in v0.0.9

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

func GetFileCheckManager added in v0.0.9

func GetFileCheckManager() *FileCheckManager

func (*FileCheckManager) Add added in v0.0.9

func (f *FileCheckManager) Add(tid int)

func (*FileCheckManager) BatchAdd added in v0.0.9

func (f *FileCheckManager) BatchAdd(tids []int)

func (*FileCheckManager) Close added in v0.0.9

func (f *FileCheckManager) Close()

func (*FileCheckManager) Count added in v0.0.9

func (f *FileCheckManager) Count() int

type LogManager

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

func GetLogManager

func GetLogManager() *LogManager

单例获取方法

func (*LogManager) AddErrorLog

func (lm *LogManager) AddErrorLog(logType int, content string)

func (*LogManager) AddSuccessLog

func (lm *LogManager) AddSuccessLog(logType int, content string)

func (*LogManager) Stop

func (lm *LogManager) Stop()

type NotifyManager added in v0.0.2

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

func GetNotifyManager added in v0.0.6

func GetNotifyManager() *NotifyManager

单例获取方法

func (*NotifyManager) AddInfoNotify added in v0.0.2

func (nm *NotifyManager) AddInfoNotify(title, content string)

func (*NotifyManager) AddWarningNotify added in v0.0.2

func (nm *NotifyManager) AddWarningNotify(title, content string)

func (*NotifyManager) Stop added in v0.0.2

func (nm *NotifyManager) Stop()

type SettingsManager added in v0.0.9

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

func GetSettingsManager added in v0.0.9

func GetSettingsManager() *SettingsManager

func (*SettingsManager) GetSetting added in v0.0.9

func (s *SettingsManager) GetSetting(key string) int

func (*SettingsManager) SaveSetting added in v0.0.9

func (s *SettingsManager) SaveSetting(key string, value int)

type UserAgentManager added in v0.2.1

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

func GetUserAgentManager added in v0.2.1

func GetUserAgentManager() *UserAgentManager

func (*UserAgentManager) GetUserAgent added in v0.2.1

func (m *UserAgentManager) GetUserAgent(platform string) (string, error)

Jump to

Keyboard shortcuts

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