Documentation
¶
Index ¶
Constants ¶
View Source
const ( KeyTypeSystem = iota KeyTypeCache KeyTypeExpression KeyTypeProto )
Variables ¶
View Source
var DEBUG = false
View Source
var Empty = struct{}{}
View Source
var ErrAbsoluteMultiAddress = errors.New("absolute mode used multi address")
View Source
var ErrEmptyRule = errors.New("empty rule")
View Source
var NilLogger log.Logger = (*dummyLog)(nil)
View Source
var PrintLogger log.Logger = (*printLog)(nil)
Functions ¶
func InitGlobalLogger ¶
func InitGlobalLogger(debug bool)
Types ¶
type IGrab ¶
type IGrab interface {
MainPage() string
LoadActions(...rule.Action) error
Cache() cache.Querier
InputType() rule.InputType
InputKey() string
Put(key string, value *Value)
Get(key string) *Value
Run(input string) error
Value() gomap.Map
}
IGrab ...
type Value ¶
type Value struct {
Type rule.ProcessValue
// contains filtered or unexported fields
}
func NewArrayValue ¶
func NewArrayValue(value []interface{}) *Value
func NewMapValue ¶
func NewMapValue(value interface{}) *Value
func NewStringValue ¶
func NewStringValue(value interface{}) *Value
func (Value) GetFileHash ¶
Click to show internal directories.
Click to hide internal directories.