Documentation ¶
Index ¶
- Variables
- func TengoAttributeExtractor(selector string, attribute string, log *zap.Logger) *tengo.UserFunction
- func TengoInnerTextExtractor(selector string, log *zap.Logger) *tengo.UserFunction
- type Config
- type Extractor
- type FxNewTengoExtractorParams
- type NewTengoExtractorParams
- type TengoExtractor
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module("extractors", fx.Provide(FxNewTengoExtractor))
Functions ¶
func TengoAttributeExtractor ¶
func TengoInnerTextExtractor ¶
func TengoInnerTextExtractor(selector string, log *zap.Logger) *tengo.UserFunction
Types ¶
type Extractor ¶
Extractor receives a response body in it's entirety and extracts the price from it.
func FxNewTengoExtractor ¶
func FxNewTengoExtractor(p FxNewTengoExtractorParams) Extractor
type NewTengoExtractorParams ¶
type TengoExtractor ¶
func NewTengoExtractors ¶
func NewTengoExtractors(p NewTengoExtractorParams) *TengoExtractor
func (*TengoExtractor) AsObject ¶
func (t *TengoExtractor) AsObject() tengo.Object
Click to show internal directories.
Click to hide internal directories.