spiderresolver

package module
v0.0.0-...-ba04c55 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: AGPL-3.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	TopicSpiderResolver = "spider_resolver"
)

Variables

View Source
var (
	ServiceName = "spiderresolver"
)

Functions

This section is empty.

Types

type EventSpiderResolver

type EventSpiderResolver struct {
	ResolverUniqueKey  string   `json:"resolver_unique_key,omitempty" yaml:"resolver_unique_key,omitempty"`
	StoreUniqueKeyList []string `` /* 227-byte string literal not displayed */

	Body []byte `json:"body,omitempty" yaml:"body,omitempty"`
}

type ModelResolver

type ModelResolver struct {
	Id uint64 `` /* 135-byte string literal not displayed */

	CreatedAt uint32                `` /* 169-byte string literal not displayed */
	UpdatedAt uint32                `` /* 162-byte string literal not displayed */
	DeletedAt soft_delete.DeletedAt `` /* 177-byte string literal not displayed */

	UniqueKey string `` /* 209-byte string literal not displayed */

	Type ResolverType `` /* 148-byte string literal not displayed */

	Detail *Resolver_Detail `` /* 144-byte string literal not displayed */
}

func (*ModelResolver) TableName

func (*ModelResolver) TableName() string

type ResolverType

type ResolverType uint8
const (
	ResolverTypeXpath ResolverType = iota + 1
	ResolverTypeJson
)

type Resolver_Detail

type Resolver_Detail struct {
	StoreUniqueKeyList []string `` /* 227-byte string literal not displayed */

	XpathOption *XpathOption `` /* 184-byte string literal not displayed */
}

func (*Resolver_Detail) Scan

func (r *Resolver_Detail) Scan(input interface{}) error

func (*Resolver_Detail) Value

func (r *Resolver_Detail) Value() (driver.Value, error)

type XpathOption

type XpathOption struct {

	// key: 解析结果的key, value: xpath
	XpathList map[string]string `` /* 176-byte string literal not displayed */
}

[]key -> xpath

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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