Documentation ¶
Index ¶
Constants ¶
View Source
const (
TopicSpiderResolver = "spider_resolver"
)
Variables ¶
View Source
var (
MqSpiderResolver = mq.NewTopic[EventSpiderResolver](TopicSpiderResolver)
)
View Source
var (
ServiceName = "spiderresolver"
)
Functions ¶
This section is empty.
Types ¶
type EventSpiderResolver ¶
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
type XpathOption ¶
type XpathOption struct { // key: 解析结果的key, value: xpath XpathList map[string]string `` /* 176-byte string literal not displayed */ }
[]key -> xpath
Click to show internal directories.
Click to hide internal directories.