Help us shape the future of Go! Take the 2026 Go Developer Survey

runner

package
v1.0.0-starmap Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func McpServer

func McpServer(options *common.ENOptions)

func RunEnumeration

func RunEnumeration(options *common.ENOptions)

RunEnumeration 普通任务命令行模式,可批量导入文件查询

Types

type CacheableENJob

type CacheableENJob struct {
	Task []DeepSearchTask          `json:"task"`
	Data map[string][]gjson.Result `json:"data"` // 将 gjson.Result 转换为字符串存储
}

type DeepSearchTask

type DeepSearchTask struct {
	common.DPS
	SearchList []string `json:"search_list"`
}

type ENJob

type ENJob struct {
	Task      []DeepSearchTask
	Data      map[string][]gjson.Result
	TaskCh    chan DeepSearchTask
	DataCh    chan map[string][]gjson.Result
	Total     int
	Processed int
}

type ENJobTask

type ENJobTask struct {
	Keyword string `json:"keyword"`
	Typ     string `json:"type"`
	Ref     string `json:"ref"`
}

type ENSCacheDTO

type ENSCacheDTO struct {
	JobName string
	Date    string
	Tasks   []ENJobTask
	Data    map[string][]map[string]string
	Jobs    map[string]CacheableENJob
}

type ENSOp

type ENSOp struct {
	OrgName  string  `form:"name" json:"name"`
	ScanType string  `form:"type" json:"type"`
	Filed    string  `form:"filed" json:"filed"`
	Depth    int     `form:"depth" json:"depth"`
	Invest   float64 `form:"invest" json:"invest"`
	Holds    bool    `form:"hold" json:"hold"`
	Supplier bool    `form:"supplier" json:"supplier"`
	Branch   bool    `form:"branch" json:"branch"`
}

ENSOp 用于接收前端传递的参数

type ENStatus

type ENStatus struct {
	JobProcessed int         `json:"processed"`
	JobTotal     int         `json:"total"`
	JobItems     []ENJobTask `json:"items"`
	Tasks        []ENTask    `json:"tasks"`
}

type ENTask

type ENTask struct {
	TaskName      string           `json:"name"`
	TaskProcessed int              `json:"processed"`
	TaskTotal     int              `json:"total"`
	Items         []DeepSearchTask `json:"items"`
}

type ESJob

type ESJob struct {
	JobName string
	Jobs    chan ENJobTask

	Done chan struct{}
	// contains filtered or unexported fields
}

func NewENTaskQueue

func NewENTaskQueue(capacity int, op *common.ENOptions) *ESJob

func (*ESJob) AddENJobTask

func (q *ESJob) AddENJobTask(task ENJobTask)

func (*ESJob) AddPluginsTask

func (q *ESJob) AddPluginsTask(keyword string)

func (*ESJob) AddTask

func (q *ESJob) AddTask(keyword string)

func (*ESJob) InfoToMap

func (q *ESJob) InfoToMap(j *EnJob, ref string) (res map[string][]map[string]string)

func (*ESJob) NewEnJob

func (q *ESJob) NewEnJob(name string) (n *EnJob)

func (*ESJob) OutDataByEnInfo

func (q *ESJob) OutDataByEnInfo() map[string][]map[string]string

func (*ESJob) OutFileByEnInfo

func (q *ESJob) OutFileByEnInfo(name string) error

func (*ESJob) StartENWorkers

func (q *ESJob) StartENWorkers()

type EnJob

type EnJob struct {
	Done chan struct{}
	// contains filtered or unexported fields
}

func (*EnJob) AddTask

func (q *EnJob) AddTask(task DeepSearchTask)

func (*EnJob) SearchByKeyWord

func (j *EnJob) SearchByKeyWord(keyword string) (string, error)

SearchByKeyWord 根据关键词筛选公司

func (*EnJob) StartWorkers

func (q *EnJob) StartWorkers()

type InfoPage

type InfoPage struct {
	Total   int64               `json:"total"`
	Page    int64               `json:"page"`
	Size    int64               `json:"size"`
	HasNext bool                `json:"has_next"`
	List    []map[string]string `json:"list"`
}

Jump to

Keyboard shortcuts

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