Documentation
¶
Index ¶
- func Accum(in chan *Email, b int, d string) (chan Emails, error)
- func DoGet(u string) (*bytes.Buffer, error)
- func DoPost(u string, r io.Reader) error
- func Generate(in []*InputTarget, delay int) chan *Email
- func Parse(in chan *Email, c int) chan *Email
- func Post(in chan Emails, u string, d int, c bool) chan int
- func Trunc(s string) string
- type Email
- type Emails
- type FoiaResults
- type Input
- type InputTarget
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
func Generate(in []*InputTarget, delay int) chan *Email
Generate ... * enumerates urls from Targets * retrieves the http.Get * send bytes it along to the parse channel
Types ¶
type Email ¶
type Email struct {
Type string
ID string
To []string
From string
Date time.Time
Subject string
Body string
Raw []byte
}
Email ...
type FoiaResults ¶
type FoiaResults struct {
Success bool
TotalHits int
Results []Result
QueryText string
FieldMatch string
Response string
}
FoiaResults ...
type Input ¶
type Input struct {
Targets []*InputTarget
MiruURL string `yaml:"miruUrl"`
OutputDir string `yaml:"outputDir"`
DownloadDelayMs int `yaml:"downloadDelayMs"`
AccumBatchSize int `yaml:"accumBatchSize"`
ParserCount int `yaml:"parserCount"`
PostErrorDelayMs int `yaml:"postErrorDelayMs"`
PostCompress bool `yaml:"postCompress"`
Debug bool `yaml:"debug"`
}
Input ...
Click to show internal directories.
Click to hide internal directories.