blob: 8ac8402e8d12bd1a1df38d5d6759a8087bd33bec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
package plaintext
import (
"encoding/json"
"github.com/Loyalsoldier/geoip/lib"
)
const (
TypeJSONIn = "json"
DescJSONIn = "Convert JSON data to other formats"
)
func init() {
lib.RegisterInputConfigCreator(TypeJSONIn, func(action lib.Action, data json.RawMessage) (lib.InputConverter, error) {
return newTextIn(TypeJSONIn, DescJSONIn, action, data)
})
lib.RegisterInputConverter(TypeJSONIn, &text_in{
Description: DescJSONIn,
})
}
|