internal

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Extractor

type Extractor interface {
	Name() string
	Extract(args *ExtractorReq) (string, error)
}

Extractor define how to extract data from multi source

type ExtractorReq

type ExtractorReq struct {
	KeyVal []KeyVal
}

func (*ExtractorReq) Get

func (r *ExtractorReq) Get(key string) (string, bool)

type KeyVal

type KeyVal struct {
	Key string
	Val string
}

type Transformer

type Transformer interface {
	Name() string
	Transform(data string, args *TransformerReq) (interface{}, error)
}

Transformer define how to transform origin data to target data

type TransformerReq

type TransformerReq struct {
	KeyVal []KeyVal
}

func (*TransformerReq) Get

func (r *TransformerReq) Get(key string) (string, bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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