Documentation ¶
Overview ¶
Copyright 2014 [email protected]. All rights reserved. Use of this source code is governed by a Apache License 2.0 that can be found in the LICENSE file.
Copyright 2014 [email protected]. All rights reserved. Use of this source code is governed by a Apache License 2.0 that can be found in the LICENSE file.
Copyright 2014 [email protected]. All rights reserved. Use of this source code is governed by a Apache License 2.0 that can be found in the LICENSE file.
Copyright 2014 [email protected]. All rights reserved. Use of this source code is governed by a Apache License 2.0 that can be found in the LICENSE file.
Index ¶
- Variables
- type AcqNode
- func (a *AcqNode) AddListUrls(urls ...string) (in []string)
- func (a *AcqNode) AddListUrlsByTag(urlMatch string, min, max, gap uint32) (in []string)
- func (a *AcqNode) Exec()
- func (a *AcqNode) GetMatchMode() EMatchMode
- func (a *AcqNode) GetNodeName() string
- func (a *AcqNode) GetTargetEncode() ETargetEncodeType
- func (a *AcqNode) GetTargetListUrls() []string
- func (a *AcqNode) GetTargetUrlBeginHtml() string
- func (a *AcqNode) GetTargetUrlEndHtml() string
- func (a *AcqNode) Len() int
- func (a *AcqNode) SetMatchMode(mode EMatchMode)
- func (a *AcqNode) SetNodeName(nodeName string)
- func (a *AcqNode) SetTargetEncode(encode ETargetEncodeType)
- func (a *AcqNode) SetTargetUrlBeginHtml(html string)
- func (a *AcqNode) SetTargetUrlEndHtml(html string)
- type AcqTarget
- type EMatchMode
- type ETargetEncodeType
- type OriginRule
- type TblAcqNode
- type TblTarget
- type TblTargetList
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Engine *xorm.Engine
)
View Source
var UrlPattern = "" /* 152-byte string literal not displayed */
Functions ¶
This section is empty.
Types ¶
type AcqNode ¶
type AcqNode struct {
// contains filtered or unexported fields
}
func NewDefaultAcqNode ¶
func (*AcqNode) AddListUrlsByTag ¶
func (*AcqNode) GetMatchMode ¶
func (a *AcqNode) GetMatchMode() EMatchMode
func (*AcqNode) GetNodeName ¶
func (*AcqNode) GetTargetEncode ¶
func (a *AcqNode) GetTargetEncode() ETargetEncodeType
func (*AcqNode) GetTargetUrlBeginHtml ¶
func (*AcqNode) GetTargetUrlEndHtml ¶
func (*AcqNode) SetMatchMode ¶
func (a *AcqNode) SetMatchMode(mode EMatchMode)
func (*AcqNode) SetNodeName ¶
func (*AcqNode) SetTargetEncode ¶
func (a *AcqNode) SetTargetEncode(encode ETargetEncodeType)
func (*AcqNode) SetTargetUrlBeginHtml ¶
func (*AcqNode) SetTargetUrlEndHtml ¶
type AcqTarget ¶
type AcqTarget struct { TargetUrl string KeyWrodFilter string SummaryFilter string TitleRule *OriginRule AuthorRule *OriginRule FromRule *OriginRule PostTimeRule *OriginRule ContentRule *OriginRule }
type ETargetEncodeType ¶
type ETargetEncodeType string
const ( EncodeType_GB2312 ETargetEncodeType = "gb2312" EncodeType_UTF8 ETargetEncodeType = "utf8" EncodeType_BIG5 ETargetEncodeType = "big5" )
type OriginRule ¶
type TblAcqNode ¶
type TblAcqNode struct { Id int64 NodeName string `xorm:"unique"` NodeEncode string MatchMode int32 // targetUrlMatch `xorm:"extends"` AcqCnt int32 Created time.Time `xorm:"created"` LastAcq time.Time `xomr:"updated"` }
lasting for AcqNodes
Click to show internal directories.
Click to hide internal directories.