Add comments to jsonLinesParser for improved documentation
This commit is contained in:
@@ -10,7 +10,9 @@ import (
|
|||||||
// jsonLinesExtract defines the function signature for extracting IP addresses from a JSON Lines item.
|
// jsonLinesExtract defines the function signature for extracting IP addresses from a JSON Lines item.
|
||||||
type jsonLinesExtract func(item json.RawMessage) (string, error)
|
type jsonLinesExtract func(item json.RawMessage) (string, error)
|
||||||
|
|
||||||
|
// jsonLinesParser is a parser for JSON Lines data.
|
||||||
type jsonLinesParser struct {
|
type jsonLinesParser struct {
|
||||||
|
// extract is the function that extracts an IP address from a JSON Lines item.
|
||||||
extract jsonLinesExtract
|
extract jsonLinesExtract
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user